per page, with , order by , clip by
Results of 1 - 10 of about 154 for Lock (0.008 sec.)
同期プリミティブ — Python 3.14.8 ドキュメント 11615
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... A mutual exclusion lock. The PyMutex should be initialized to zero to represent the unlocked state. For example: PyMutex mutex = { 0 }; Instances ... unstable. The size may change in future Python releases without a deprecation period. Added in version 3.13. void PyMutex_Lock ( PyMutex * m ) ¶ Thread safety: Atomic . Lock mutex m . If another thread has already locked it, the calling thread will ... block until the mutex is unlocked. While blocked, the thread will temporarily detach the thread state if one exists. Added in ve ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
同期プリミティブ — Python 3.14.8 ドキュメント 11615
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... A mutual exclusion lock. The PyMutex should be initialized to zero to represent the unlocked state. For example: PyMutex mutex = { 0 }; Instances ... unstable. The size may change in future Python releases without a deprecation period. Added in version 3.13. void PyMutex_Lock ( PyMutex * m ) ¶ Thread safety: Atomic . Lock mutex m . If another thread has already locked it, the calling thread will ... block until the mutex is unlocked. While blocked, the thread will temporarily detach the thread state if one exists. Added in ve ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
Thread Safety Guarantees — Python 3.14.8 ドキュメント 9968
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui ... s-wide state such as signal handlers or environment variables, where concurrent calls from any threads, even with external locking, can conflict with the runtime or other libraries. Compatible ¶ A function or operation that is safe to call from multi ... ple threads provided the caller supplies appropriate external synchronization, for example by holding a lock for the duration of each call. Without such synchronization, concurrent calls may produce race conditions or data races . ... Example: a function that reads from or writes to an object whose internal state is not protected by a lock. Callers must ensure that no two threads access the same object at the same time. Safe on distinct objects ¶ A function or ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
Thread Safety Guarantees — Python 3.14.8 ドキュメント 9968
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » Thread Safety Guarantees テーマ 自動 ライト ダーク | Thread Safety Guarantees ¶ This page documents thread-safety guarantees for bui ... s-wide state such as signal handlers or environment variables, where concurrent calls from any threads, even with external locking, can conflict with the runtime or other libraries. Compatible ¶ A function or operation that is safe to call from multi ... ple threads provided the caller supplies appropriate external synchronization, for example by holding a lock for the duration of each call. Without such synchronization, concurrent calls may produce race conditions or data races . ... Example: a function that reads from or writes to an object whose internal state is not protected by a lock. Callers must ensure that no two threads access the same object at the same time. Safe on distinct objects ¶ A function or ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8691
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... le. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage ... 参考 concurrent.futures.ProcessPoolExecutor offers a higher level interface to push tasks to a background process without blocking execution of the calling process. Compared to using the Pool interface directly, the concurrent.futures API more readil ... 期 ¶ multiprocessing contains equivalents of all the synchronization primitives from threading . For instance one can use a lock to ensure that only one process prints to standard output at a time: from multiprocessing import Process , Lock def f ( l ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8691
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... le. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage ... 参考 concurrent.futures.ProcessPoolExecutor offers a higher level interface to push tasks to a background process without blocking execution of the calling process. Compared to using the Pool interface directly, the concurrent.futures API more readil ... 期 ¶ multiprocessing contains equivalents of all the synchronization primitives from threading . For instance one can use a lock to ensure that only one process prints to standard output at a time: from multiprocessing import Process , Lock def f ( l ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
同期プリミティブ — Python 3.14.8 ドキュメント 8610
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ ... ード: Lib/asyncio/locks.py asyncio の同期プリミティブは threading モジュールのそれと類似するようにデザインされていますが、2つの重要な注意事項があ ... 作を実行するには asyncio.wait_for() 関数を使ってください。 asyncio モジュールは以下の基本的な同期プリミティブを持っています: Lock Event Condition Semaphore BoundedSemaphore Barrier Lock ¶ class asyncio. Lock ¶ asyncio タスクのためのミューテックスロック ... 。スレッドセーフではありません。 asyncio ロックは、共有リソースに対する排他的なアクセスを保証するために使うことができます。 Lock の望ましい使用方法は、 async with 文と組み合わせて使うことです: lock = asyncio . Lock () # ... later async with lock : # a ...
https://man.mtool.work/python/3.14/library/asyncio-sync.html
同期プリミティブ — Python 3.14.8 ドキュメント 8471
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ ソースコ ... ード: Lib/asyncio/locks.py asyncio の同期プリミティブは threading モジュールのそれと類似するようにデザインされていますが、2つの重要な注意事項があ ... 作を実行するには asyncio.wait_for() 関数を使ってください。 asyncio モジュールは以下の基本的な同期プリミティブを持っています: Lock Event Condition Semaphore BoundedSemaphore Barrier Lock ¶ class asyncio. Lock ¶ asyncio タスクのためのミューテックスロック ... 。スレッドセーフではありません。 asyncio ロックは、共有リソースに対する排他的なアクセスを保証するために使うことができます。 Lock の望ましい使用方法は、 async with 文と組み合わせて使うことです: lock = asyncio . Lock () # ... later async with lock : # a ...
https://man.mtool.work/python/3.14/library/asyncio-sync.html
threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 8471
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード ... threading import time def crawl ( link , delay = 3 ): print ( f "crawl started for { link } " ) time . sleep ( delay ) # Blocking I/O (simulating a network request) print ( f "crawl ended for { link } " ) links = [ "https://python.org" , "https://do ... 。 参考 concurrent.futures.ThreadPoolExecutor offers a higher level interface to push tasks to a background thread without blocking execution of the calling thread, while still being able to retrieve their results when needed. queue provides a thread- ... as of Python 3.10, but they are still supported for compatibility with Python 2.5 and lower. CPython は Global Interpreter Lock のため、ある時点で Python コードを実行できるスレッドは1つに限られます (ただし、いくつかのパフォーマンスが強く求められるライ ...
https://man.mtool.work/python/3.14/library/threading.html
threading --- スレッドベースの並列処理 — Python 3.14.8 ドキュメント 8471
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » threading --- スレッドベースの並列処理 テーマ 自動 ライト ダーク | threading --- スレッドベースの並列処理 ¶ ソースコード ... threading import time def crawl ( link , delay = 3 ): print ( f "crawl started for { link } " ) time . sleep ( delay ) # Blocking I/O (simulating a network request) print ( f "crawl ended for { link } " ) links = [ "https://python.org" , "https://do ... 。 参考 concurrent.futures.ThreadPoolExecutor offers a higher level interface to push tasks to a background thread without blocking execution of the calling thread, while still being able to retrieve their results when needed. queue provides a thread- ... as of Python 3.10, but they are still supported for compatibility with Python 2.5 and lower. CPython は Global Interpreter Lock のため、ある時点で Python コードを実行できるスレッドは1つに限られます (ただし、いくつかのパフォーマンスが強く求められるライ ...
https://man.mtool.work/python/3.14/library/threading.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT