Results of 1 - 10 of about 177 for join (0.009 sec.)
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 11448
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...ame ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行された個々のプロセス ID を表示するために拡張したサンプルコードを以下に示します: from multiprocessing import Process...' , name ) if __name__ == '__main__' : info ( 'main line' ) p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () なぜ if __name__ == '__main__' という記述が必要かは プログラミングガイドライン を参照してください。 The arguments to Pr...method ( 'spawn' ) q = mp . Queue () p = mp . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () 関数 set_start_method() はプログラム内で複数回使用してはいけません。 もうひとつの方法として、 get_context() を使用してコ... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 11337
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶
...ame ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行された個々のプロセス ID を表示するために拡張したサンプルコードを以下に示します: from multiprocessing import Process...' , name ) if __name__ == '__main__' : info ( 'main line' ) p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () なぜ if __name__ == '__main__' という記述が必要かは プログラミングガイドライン を参照してください。 The arguments to Pr...method ( 'spawn' ) q = mp . Queue () p = mp . Process ( target = foo , args = ( q ,)) p . start () print ( q . get ()) p . join () 関数 set_start_method() はプログラム内で複数回使用してはいけません。 もうひとつの方法として、 get_context() を使用してコ... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- キュー — Python 3.14.8 ドキュメント 9531
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/q
...きはそれを、そうでなければ QueueEmpty を返します。 Raises QueueShutDown if the queue has been shut down and is empty. async join ( ) ¶ キューにある全ての要素が取得され、処理されるまでブロックします。 未完了のタスクのカウント値は、キューにアイテムが追加...り出し、処理を完了したことを通知するために task_done() を呼び出すと減算されます。未完了のタスクのカウント値がゼロになると、 join() のブロックは解除されます。 async put ( item ) ¶ 要素をキューに入力します。キューが満杯の場合、要素を追加する前に空きスロ...et() calls to extract tasks that have already been loaded. And if task_done() is called for each remaining task, a pending join() will be unblocked normally. Once the queue is empty, future calls to get() will raise QueueShutDown . If immediate is tr... - https://man.mtool.work/python/3.14/library/asyncio-queue.html
- キュー — Python 3.14.8 ドキュメント 9531
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » キュー テーマ 自動 ライト ダーク | キュー ¶ ソースコード: Lib/asyncio/q
...きはそれを、そうでなければ QueueEmpty を返します。 Raises QueueShutDown if the queue has been shut down and is empty. async join ( ) ¶ キューにある全ての要素が取得され、処理されるまでブロックします。 未完了のタスクのカウント値は、キューにアイテムが追加...り出し、処理を完了したことを通知するために task_done() を呼び出すと減算されます。未完了のタスクのカウント値がゼロになると、 join() のブロックは解除されます。 async put ( item ) ¶ 要素をキューに入力します。キューが満杯の場合、要素を追加する前に空きスロ...et() calls to extract tasks that have already been loaded. And if task_done() is called for each remaining task, a pending join() will be unblocked normally. Once the queue is empty, future calls to get() will raise QueueShutDown . If immediate is tr... - https://man.mtool.work/python/3.14/library/asyncio-queue.html
- os.path --- 一般的なパス名操作 — Python 3.14.8 ドキュメント 8884
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » os.path --- 一般的なパス名操作 テーマ 自動 ライト ダーク | os.path --- 一般的なパス名操作 ¶ ソ
...¶ Return a normalized absolutized version of the pathname path . On most platforms, this is equivalent to calling normpath(join(os.getcwd(), path)) . On Windows the path is normalized by the operating system, therefore the result can differ from norm...path(join(os.getcwd(), path)) . A drive-relative path is resolved against the current directory of the specified drive, and the driv...path . abspath ( 'c:spam' ) 'C:\\Temp\\spam' >>> os . path . abspath ( 'c:/temp/spam. . .' ) 'c:\\temp\\spam' 参考 os.path.join() and os.path.normpath() . バージョン 3.6 で変更: path-like object を受け入れるようになりました。 os.path. basename ( path... - https://man.mtool.work/python/3.14/library/os.path.html
- os.path --- 一般的なパス名操作 — Python 3.14.8 ドキュメント 8561
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » os.path --- 一般的なパス名操作 テーマ 自動 ライト ダーク | os.path --- 一般的なパス名操作 ¶ ソ
...¶ Return a normalized absolutized version of the pathname path . On most platforms, this is equivalent to calling normpath(join(os.getcwd(), path)) . On Windows the path is normalized by the operating system, therefore the result can differ from norm...path(join(os.getcwd(), path)) . A drive-relative path is resolved against the current directory of the specified drive, and the driv...path . abspath ( 'c:spam' ) 'C:\\Temp\\spam' >>> os . path . abspath ( 'c:/temp/spam. . .' ) 'c:\\temp\\spam' 参考 os.path.join() and os.path.normpath() . バージョン 3.6 で変更: path-like object を受け入れるようになりました。 os.path. basename ( path... - https://man.mtool.work/python/3.14/library/os.path.html
- queue --- 同期キュークラス — Python 3.14.8 ドキュメント 8561
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue
...クの取り出しに使われた各 get() の後に task_done() を呼び出すと、取り出したタスクに対する処理が完了した事をキューに教えます。 join() がブロックされていた場合、全itemが処理された (キューに put() された全てのitemに対して task_done() が呼び出されたことを意...味します) 時に復帰します。 キューにある要素より多く呼び出された場合 ValueError が発生します。 Queue. join ( ) ¶ キューにあるすべてのアイテムが取り出されて処理されるまでブロックします。 未完了のタスクのカウント値はキューにアイテム...を呼び出してアイテムの回収とその全処理の完了が示されるときは常に減算されます。未完了のタスクのカウント値がゼロになった場合、 join() のブロックが解除されます。 Waiting for task completion ¶ キューに入れたタスクが完了するのを待つ例: import threading impo... - https://man.mtool.work/python/3.14/library/queue.html
- threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 8249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード
.... append ( t ) # Start each thread for t in threads : t . start () # Wait for all threads to finish for t in threads : t . join () バージョン 3.7 で変更: このモジュールは以前はオプションでしたが、常に利用可能なモジュールとなりました。 参考 concurrent...( mydata . number ) >>> import threading >>> thread = threading . Thread ( target = f ) >>> thread . start () >>> thread . join () >>> log [[], 11] we get different data. Furthermore, changes made in the other thread don't affect data seen in this th...data in a separate thread: >>> log = [] >>> thread = threading . Thread ( target = f ) >>> thread . start () >>> thread . join () >>> log [[('color', 'red')], 11] without affecting this thread's data: >>> mydata . number 2 >>> mydata . color Traceba... - https://man.mtool.work/python/3.14/library/threading.html
- threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 8249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード
.... append ( t ) # Start each thread for t in threads : t . start () # Wait for all threads to finish for t in threads : t . join () バージョン 3.7 で変更: このモジュールは以前はオプションでしたが、常に利用可能なモジュールとなりました。 参考 concurrent...( mydata . number ) >>> import threading >>> thread = threading . Thread ( target = f ) >>> thread . start () >>> thread . join () >>> log [[], 11] we get different data. Furthermore, changes made in the other thread don't affect data seen in this th...data in a separate thread: >>> log = [] >>> thread = threading . Thread ( target = f ) >>> thread . start () >>> thread . join () >>> log [[('color', 'red')], 11] without affecting this thread's data: >>> mydata . number 2 >>> mydata . color Traceba... - https://man.mtool.work/python/3.14/library/threading.html
- queue --- 同期キュークラス — Python 3.14.8 ドキュメント 8137
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » queue --- 同期キュークラス テーマ 自動 ライト ダーク | queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py The queue
...クの取り出しに使われた各 get() の後に task_done() を呼び出すと、取り出したタスクに対する処理が完了した事をキューに教えます。 join() がブロックされていた場合、全itemが処理された (キューに put() された全てのitemに対して task_done() が呼び出されたことを意...味します) 時に復帰します。 キューにある要素より多く呼び出された場合 ValueError が発生します。 Queue. join ( ) ¶ キューにあるすべてのアイテムが取り出されて処理されるまでブロックします。 未完了のタスクのカウント値はキューにアイテム...を呼び出してアイテムの回収とその全処理の完了が示されるときは常に減算されます。未完了のタスクのカウント値がゼロになった場合、 join() のブロックが解除されます。 Waiting for task completion ¶ キューに入れたタスクが完了するのを待つ例: import threading impo... - https://man.mtool.work/python/3.14/library/queue.html