per page, with , order by , clip by
Results of 1 - 10 of about 13 for producer (0.009 sec.)
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 13267
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... tine on it. The threads execute concurrently, and in a free-threaded build they can run on separate CPU cores in parallel. Producer/consumer across threads ¶ When a regular (non-asyncio) thread needs to hand work to an asyncio event loop running in anoth ... ther than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import threading def producer ( q : queue . Queue [ int ]) -> None : for i in range ( 5 ): print ( f "Producing { i } " ) q . put ( i ) q . shutdown () ... e () consumer_thread = threading . Thread ( target = lambda : asyncio . run ( consumer ( q )) ) consumer_thread . start () producer ( q ) consumer_thread . join () The producer runs on the main thread while the consumer runs inside an event loop on its o ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 12510
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... tine on it. The threads execute concurrently, and in a free-threaded build they can run on separate CPU cores in parallel. Producer/consumer across threads ¶ When a regular (non-asyncio) thread needs to hand work to an asyncio event loop running in anoth ... ther than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import threading def producer ( q : queue . Queue [ int ]) -> None : for i in range ( 5 ): print ( f "Producing { i } " ) q . put ( i ) q . shutdown () ... e () consumer_thread = threading . Thread ( target = lambda : asyncio . run ( consumer ( q )) ) consumer_thread . start () producer ( q ) consumer_thread . join () The producer runs on the main thread while the consumer runs inside an event loop on its o ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
queue --- 同期キュークラス — Python 3.14.8 ドキュメント 8287
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue ... module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between ...
https://man.mtool.work/python/3.14/library/queue.html
queue --- 同期キュークラス — Python 3.14.8 ドキュメント 8287
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue ... module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between ...
https://man.mtool.work/python/3.14/library/queue.html
用語集 — Python 3.14.8 ドキュメント 8164
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » 用語集 テーマ 自動 ライト ダーク | 用語集 ¶ >>> ¶ 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見ら ... t race conditions and ensure thread-safe access to shared data. Alternative design patterns to locks exist such as queues, producer/consumer patterns, and thread-local state. See also deadlock , and reentrant . lock-free ¶ An operation that does not acqu ... tives including Lock , RLock , Semaphore , Condition , Event , and Barrier . Additionally, the queue module provides multi-producer, multi-consumer queues that are especially useful in multithreaded programs. These primitives help prevent race conditions ...
https://man.mtool.work/python/3.14/glossary.html
用語集 — Python 3.14.8 ドキュメント 8164
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » 用語集 テーマ 自動 ライト ダーク | 用語集 ¶ >>> ¶ 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見ら ... t race conditions and ensure thread-safe access to shared data. Alternative design patterns to locks exist such as queues, producer/consumer patterns, and thread-local state. See also deadlock , and reentrant . lock-free ¶ An operation that does not acqu ... tives including Lock , RLock , Semaphore , Condition , Event , and Barrier . Additionally, the queue module provides multi-producer, multi-consumer queues that are especially useful in multithreaded programs. These primitives help prevent race conditions ...
https://man.mtool.work/python/3.14/glossary.html
バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 8041
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト ... rovides such a facility at the C and Python level in the form of the buffer protocol . This protocol has two sides: on the producer side, a type can export a "buffer interface" which allows objects of that type to expose information about their underlyin ...
https://man.mtool.work/python/3.14/c-api/buffer.html
バッファプロトコル (buffer Protocol) — Python 3.14.8 ドキュメント 8041
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » バッファプロトコル (buffer Protocol) テーマ 自動 ライト ダーク | バッファプロト ... rovides such a facility at the C and Python level in the form of the buffer protocol . This protocol has two sides: on the producer side, a type can export a "buffer interface" which allows objects of that type to expose information about their underlyin ...
https://man.mtool.work/python/3.14/c-api/buffer.html
Python Documentation contents — Python 3.14.8 ドキュメント 7918
ナビゲーション 索引 モジュール | 次へ | Python » 3.14.8 Documentation » Python Documentation contents テーマ 自動 ライト ダーク | Python Documentation contents ¶ What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新し ... and closure of the same generator asyncio and free-threaded Python Thread safety considerations Using asyncio with threads Producer/consumer across threads socket --- 低水準ネットワークインターフェース ソケットファミリー モジュールの内容 例外 定数 関数 ソ ...
https://man.mtool.work/python/3.14/contents.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... ようにします。 メッセージのやりとりのために Pipe() (2つのプロセス間の通信用)、もしくはキュー (複数のメッセージ生成プロセス (producer)、消費プロセス (consumer) の実現用) を使うことができます。 Queue , SimpleQueue と JoinableQueue 型は複数プロセスから生成/消 ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
PREV 1 2 NEXT