@@ -19,7 +19,7 @@ msgstr ""
1919
2020#: ../../library/threading.rst:2
2121msgid ":mod:`!threading` --- Thread-based parallelism"
22- msgstr ":mod:`!threading` --- 基於執行緒的平行性 "
22+ msgstr ":mod:`!threading` --- 執行緒層級的平行處理 "
2323
2424#: ../../library/threading.rst:7
2525msgid "**Source code:** :source:`Lib/threading.py`"
@@ -30,6 +30,7 @@ msgid ""
3030"This module constructs higher-level threading interfaces on top of the lower "
3131"level :mod:`_thread` module."
3232msgstr ""
33+ "此模組在較低層的 :mod:`_thread` 模組之上,建構了較高層的執行緒(threading)介面。"
3334
3435#: ../../library/threading.rst:194 ../../library/threading.rst:293
3536#: ../../library/threading.rst:678 ../../includes/wasm-notavail.rst:3
@@ -46,7 +47,7 @@ msgstr ""
4647
4748#: ../../library/threading.rst:17
4849msgid "Introduction"
49- msgstr ""
50+ msgstr "介紹 "
5051
5152#: ../../library/threading.rst:19
5253msgid ""
@@ -58,13 +59,21 @@ msgid ""
5859"bound, such as file operations or making network requests, where much of the "
5960"time is spent waiting for external resources."
6061msgstr ""
62+ "模組 :mod:`!threading` 提供了一種方式,能在單一進程(process)中同時執行多個 "
63+ "`執行緒 <https://zh.wikipedia.org/wiki/%E7%BA%BF%E7%A8%8B>`_ "
64+ "(一個進程中的較小執行單元)。"
65+ "它允許創造與管理執行緒,使多個任務可以平行執行並共享同一個記憶體空間。"
66+ "當任務屬於 I/O 密集型(I/O bound)時,執行緒特別有用,例如檔案操作或網路請求,"
67+ "因為這類任務的大部分時間都花在等待外部資源。"
6168
6269#: ../../library/threading.rst:27
6370msgid ""
6471"A typical use case for :mod:`!threading` includes managing a pool of worker "
6572"threads that can process multiple tasks concurrently. Here's a basic "
6673"example of creating and starting threads using :class:`~threading.Thread`::"
6774msgstr ""
75+ "模組 :mod:`!threading` 的一個典型使用情境是管理一個工作執行緒(worker threads)池,讓多個任務能夠同時被處理。"
76+ "以下是一個使用 :class:`~threading.Thread`: 來創造並啟動執行緒的基本範例: "
6877
6978#: ../../library/threading.rst:31
7079msgid ""
0 commit comments