per page, with , order by , clip by
Results of 1 - 10 of about 117 for Queue (0.006 sec.)
queue --- 同期キュークラス — Python 3.14.8 ドキュメント 10537
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 multiple threads. The ... IFO キューでは、最後に追加されたエントリが最初に取り出されます(スタックのように振る舞います)。 優先順位付きキュー(priority queue)では、エントリは( heapq モジュールを利用して)ソートされ、 最も低い値のエントリが最初に取り出されます。 内部的には、これらの ... っています; しかし、スレッド内での再入を扱うようには設計されていません。 In addition, the module implements a "simple" FIFO queue type, SimpleQueue , whose specific implementation provides additional guarantees in exchange for the smaller functionality ...
https://man.mtool.work/python/3.14/library/queue.html
queue --- 同期キュークラス — Python 3.14.8 ドキュメント 10537
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 multiple threads. The ... IFO キューでは、最後に追加されたエントリが最初に取り出されます(スタックのように振る舞います)。 優先順位付きキュー(priority queue)では、エントリは( heapq モジュールを利用して)ソートされ、 最も低い値のエントリが最初に取り出されます。 内部的には、これらの ... っています; しかし、スレッド内での再入を扱うようには設計されていません。 In addition, the module implements a "simple" FIFO queue type, SimpleQueue , whose specific implementation provides additional guarantees in exchange for the smaller functionality ...
https://man.mtool.work/python/3.14/library/queue.html
キュー — Python 3.14.8 ドキュメント 10362
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/queue ... ueues.py asyncio キューは queue モジュールのクラス群と同じ形になるように設計されています。 asyncio キューはスレッドセーフではありませんが、それらは async/ ... イムアウトを伴うキューを使った処理を行うには asyncio.wait_for() 関数を使ってください。 下記の 使用例 節も参照してください。 Queue ¶ class asyncio. Queue ( maxsize = 0 ) ¶ 先入れ先出し (FIFO) キューです。 maxsize がゼロ以下の場合、キューは無限長になりま ... に達すると await put() は get() によってキューの要素が除去されるまでブロックします。 標準ライブラリにおけるスレッドベースの queue モジュールと異なり、キューのサイズは常に既知であり、 qsize() メソッドを呼び出すことによって取得することができます。 バージ ...
https://man.mtool.work/python/3.14/library/asyncio-queue.html
キュー — Python 3.14.8 ドキュメント 10337
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/queue ... ueues.py asyncio キューは queue モジュールのクラス群と同じ形になるように設計されています。 asyncio キューはスレッドセーフではありませんが、それらは async/ ... イムアウトを伴うキューを使った処理を行うには asyncio.wait_for() 関数を使ってください。 下記の 使用例 節も参照してください。 Queue ¶ class asyncio. Queue ( maxsize = 0 ) ¶ 先入れ先出し (FIFO) キューです。 maxsize がゼロ以下の場合、キューは無限長になりま ... に達すると await put() は get() によってキューの要素が除去されるまでブロックします。 標準ライブラリにおけるスレッドベースの queue モジュールと異なり、キューのサイズは常に既知であり、 qsize() メソッドを呼び出すことによって取得することができます。 バージ ...
https://man.mtool.work/python/3.14/library/asyncio-queue.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 9762
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... asyncio) thread needs to hand work to an asyncio event loop running in another thread, use a thread-safe primitive such as queue.Queue rather than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import threa ... ding def producer ( q : queue . Queue [ int ]) -> None : for i in range ( 5 ): print ( f "Producing { i } " ) q . put ( i ) q . shutdown () async def co ... nsumer ( q : queue . Queue [ int ]) -> None : while True : try : item = q . get_nowait () except queue . Empty : await asyncio . sleep ( 0.1 ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 9762
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... asyncio) thread needs to hand work to an asyncio event loop running in another thread, use a thread-safe primitive such as queue.Queue rather than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import threa ... ding def producer ( q : queue . Queue [ int ]) -> None : for i in range ( 5 ): print ( f "Producing { i } " ) q . put ( i ) q . shutdown () async def co ... nsumer ( q : queue . Queue [ int ]) -> None : while True : try : item = q . get_nowait () except queue . Empty : await asyncio . sleep ( 0.1 ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 9462
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... processing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : mp . set_start_method ( 'spawn' ) q = mp . Queue () p = mp . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () 関数 set_start_method() は ... ocessing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : ctx = mp . get_context ( 'spawn' ) q = ctx . Queue () p = ctx . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () あるコンテキストに関連し ... s. プロセス間でのオブジェクト交換 ¶ multiprocessing supports two types of communication channel between processes: キュー (Queue) Queue クラスは queue.Queue クラスとほとんど同じように使うことができます。以下に例を示します: from multiprocessing import ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 9462
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... processing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : mp . set_start_method ( 'spawn' ) q = mp . Queue () p = mp . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () 関数 set_start_method() は ... ocessing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : ctx = mp . get_context ( 'spawn' ) q = ctx . Queue () p = ctx . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () あるコンテキストに関連し ... s. プロセス間でのオブジェクト交換 ¶ multiprocessing supports two types of communication channel between processes: キュー (Queue) Queue クラスは queue.Queue クラスとほとんど同じように使うことができます。以下に例を示します: from multiprocessing import ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
concurrent.interpreters --- Multiple interpreters in the same process — Python ... 9162
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter ... can even mean sharing data in some carefully managed way. With this in mind, the concurrent.interpreters module provides a queue.Queue implementation, available through create_queue() . "Sharing" Objects ¶ Any data actually shared between interpreters ... ported objects) There are a small number of Python types that actually share mutable data between interpreters: memoryview Queue リファレンス ¶ このモジュールは以下の関数を定義しています: concurrent.interpreters. list_all ( ) ¶ Return a list of Interp ... e ( ) ¶ Initialize a new (idle) Python interpreter and return a Interpreter object for it. concurrent.interpreters. create_queue ( ) ¶ Initialize a new cross-interpreter queue and return a Queue object for it. Interpreter objects ¶ class concurrent.in ...
https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
concurrent.interpreters --- Multiple interpreters in the same process — Python ... 9162
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter ... can even mean sharing data in some carefully managed way. With this in mind, the concurrent.interpreters module provides a queue.Queue implementation, available through create_queue() . "Sharing" Objects ¶ Any data actually shared between interpreters ... ported objects) There are a small number of Python types that actually share mutable data between interpreters: memoryview Queue リファレンス ¶ このモジュールは以下の関数を定義しています: concurrent.interpreters. list_all ( ) ¶ Return a list of Interp ... e ( ) ¶ Initialize a new (idle) Python interpreter and return a Interpreter object for it. concurrent.interpreters. create_queue ( ) ¶ Initialize a new cross-interpreter queue and return a Queue object for it. Interpreter objects ¶ class concurrent.in ...
https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT