Python 3.6.5 ドキュメント 検索
Results of 1 - 10 of about 33 for LOCK (0.007 sec.)
- 17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 13893
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...processes for a different context. In particular, locks created using the fork context cannot be passed t...にしています: from multiprocessing import Process , Lock def f ( l , i ): l . acquire () try : print ( 'hel...nally : l . release () if __name__ == '__main__' : lock = Lock () for num in range ( 10 ): Process ( targe...t = f , args = ( lock , num )) . start () ロックを使用しないで標準出力に... - https://man.plustar.jp/python/library/multiprocessing.html - [similar]
- 18.5.7. 同期プリミティブ — Python 3.6.5 ドキュメント 13171
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
....5.7. 同期プリミティブ ¶ ソースコード: Lib/asyncio/locks.py ロック: Lock Event Condition セマフォ: Semapho...re BoundedSemaphore asyncio lock API は threading モジュールのクラス ( Lock , Event...することが出来ます。 18.5.7.1. ロック ¶ 18.5.7.1.1. Lock ¶ class asyncio. Lock ( * , loop=None ) ¶ プリミテ...ます。コンテキストマネージャー表現では、 (yield from lock) のように使用します。 このクラスは スレッド安全では... - https://man.plustar.jp/python/library/asyncio-sync.html - [similar]
- 17.9. _thread --- 低水準の スレッド API — Python 3.6.5 ドキュメント 9994
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...現在は組み込みの RuntimeError の別名です。 _thread. LockType ¶ これはロックオブジェクトのタイプです。 _thre...は、静かにスレッドを終了させます。 _thread. allocate_lock ( ) ¶ 新しいロックオブジェクトを返します。ロックの...スレッドに対応したシステム。 _thread. TIMEOUT_MAX ¶ Lock.acquire() の timeout 引数に許される最大値です。これ...ックオブジェクトは次のようなメソッドを持っています: lock. acquire ( waitflag=1 , timeout=-1 ) ¶ オプションの... - https://man.plustar.jp/python/library/_thread.html - [similar]
- 35.9. fcntl --- fcntl および ioctl システムコール — Python 3.6.5 ドキュメント 9994
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
..., buf , 1 ) 0 >>> buf array('h', [13341]) fcntl. flock ( fd , operation ) ¶ ファイル記述子 fd ( fileno()...operation を実行します。 詳細は Unix マニュアルの flock(2) を参照してください (システムによっては、この関数...は fcntl() を使ってエミュレーションされています)。 flock() が失敗すると、 OSError 例外が送出されます。 fcnt...l. lockf ( fd , cmd , len=0 , start=0 , whence=0 ) ¶ 本質的... - https://man.plustar.jp/python/library/fcntl.html - [similar]
- 17.1. threading --- スレッドベースの並列処理 — Python 3.6.5 ドキュメント 9433
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...います: threading. TIMEOUT_MAX ¶ ブロックする関数 ( Lock.acquire() , RLock.acquire() , Condition.wait() など...plementation detail: CPython は Global Interpreter Lock のため、ある時点で Python コードを実行できるスレッ...いては、 マルチスレッドは正しい選択肢です。 17.1.3. Lock オブジェクト ¶ プリミティブロックとは、ロックが生じ...ソッドはアトミックに実行されます。 class threading. Lock ¶ プリミティブロック (primitive lock) オブジェクト... - https://man.plustar.jp/python/library/threading.html - [similar]
- What's New In Python 3.5 — Python 3.6.5 ドキュメント 8871
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...のスクリプト: import asyncio async def coro ( name , lock ): print ( 'coro {} : waiting for lock' . format (...name )) async with lock : print ( 'coro {} : holding the lock' . format (...cio . sleep ( 1 ) print ( 'coro {} : releasing the lock' . format ( name )) loop = asyncio . get_event_loo...p () lock = asyncio . Lock () coros = asyncio . gather ( cor... - https://man.plustar.jp/python/whatsnew/3.5.html - [similar]
- 19.4. mailbox --- 様々な形式のメールボックス操作 — Python 3.6.5 ドキュメント 8294
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...しましょう。メールボックスを更新する場面では、 必ず lock() と unlock() メソッドを、ファイル内のメッセージを...でもこのメソッドを呼ぶように習慣付けておきましょう。 lock ( ) ¶ メールボックスの排他的アドバイザリロックを取...変更を加えるときは いつも ロックを掛けるべきです。 unlock ( ) ¶ メールボックスのロックが存在する場合は解放し...は即時に適用されるので、このメソッドは何もしません。 lock ( ) ¶ unlock ( ) ¶ Maildir メールボックスはロックを... - https://man.plustar.jp/python/library/mailbox.html - [similar]
- 初期化 (initialization)、終了処理 (finalization)、スレッド — Python 3.6.5 ドキ... 7941
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...とグローバルインタプリタロック (global interpreter lock) ¶ Python インタプリタは完全にはスレッドセーフでは...に、グローバルインタプリタロック( global interpreter lock , GIL ) と呼ばれるグローバルなロックが存在していて...a local variable . Release the global interpreter lock . ... Do some blocking I / O operation ... Reacqui...re the global interpreter lock . Restore the thread state from the local variable... - https://man.plustar.jp/python/c-api/init.html - [similar]
- What's New in Python 2.6 — Python 3.6.5 ドキュメント 7732
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...ー構造です: with expression [ as variable ]: with - block expression は評価されて結果がコンテキスト管理プロト...gement protocol とで不統一。同じものです。 ) with-block が呼び出される前に、 __enter__() が呼ばれるので、セ...sion の結果が代入される のではない のです)。 with-block ブロックの実行が終了後、ブロックが例外を送出する場...数でも ' with ' ステートメントの恩恵にあずかれます: lock = threading . Lock () with lock : # Critical secti... - https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
- 36.2. imp --- import 内部へのアクセス — Python 3.6.5 ドキュメント 7668
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...ッドロックなしで動作することを保証しています。 imp. lock_held ( ) ¶ 現在グローバルなインポートロックが保持さ...維持されます。 バージョン 3.4 で非推奨. imp. acquire_lock ( ) ¶ 現在のスレッドに対するインタープリタのグロー...維持されます。 バージョン 3.4 で非推奨. imp. release_lock ( ) ¶ インタープリタのグローバルなインポートロック... - https://man.plustar.jp/python/library/imp.html - [similar]
