Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions library/threading.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ msgstr ""

#: ../../library/threading.rst:2
msgid ":mod:`!threading` --- Thread-based parallelism"
msgstr ":mod:`!threading` --- 基於執行緒的平行性"
msgstr ":mod:`!threading` --- 執行緒層級的平行處理"

#: ../../library/threading.rst:7
msgid "**Source code:** :source:`Lib/threading.py`"
Expand All @@ -30,6 +30,7 @@ msgid ""
"This module constructs higher-level threading interfaces on top of the lower "
"level :mod:`_thread` module."
msgstr ""
"此模組在較低層的 :mod:`_thread` 模組之上,建構了較高層的執行緒(threading)介面。"

#: ../../library/threading.rst:194 ../../library/threading.rst:293
#: ../../library/threading.rst:678 ../../includes/wasm-notavail.rst:3
Expand All @@ -46,7 +47,7 @@ msgstr ""

#: ../../library/threading.rst:17
msgid "Introduction"
msgstr ""
msgstr "介紹"

#: ../../library/threading.rst:19
msgid ""
Expand All @@ -58,13 +59,21 @@ msgid ""
"bound, such as file operations or making network requests, where much of the "
"time is spent waiting for external resources."
msgstr ""
"模組 :mod:`!threading` 提供了一種方式,能在單一進程(process)中同時執行多個 "
"`執行緒 <https://zh.wikipedia.org/wiki/%E7%BA%BF%E7%A8%8B>`_ "
"(一個進程中的較小執行單元)。"
"它允許創造與管理執行緒,使多個任務可以平行執行並共享同一個記憶體空間。"
"當任務屬於 I/O 密集型(I/O bound)時,執行緒特別有用,例如檔案操作或網路請求,"
"因為這類任務的大部分時間都花在等待外部資源。"

#: ../../library/threading.rst:27
msgid ""
"A typical use case for :mod:`!threading` includes managing a pool of worker "
"threads that can process multiple tasks concurrently. Here's a basic "
"example of creating and starting threads using :class:`~threading.Thread`::"
msgstr ""
"模組 :mod:`!threading` 的一個典型使用情境是管理一個工作執行緒(worker threads)池,讓多個任務能夠同時被處理。"
"以下是一個使用 :class:`~threading.Thread`: 來創造並啟動執行緒的基本範例:"

#: ../../library/threading.rst:31
msgid ""
Expand Down