Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
並列プログラミングを使用してアプリケーションを作成しており、同期を使用したいと考えています。pthread_mutex_lockとと の違いは何pthread_mutex_trylock()ですか?
pthread_mutex_lock
pthread_mutex_trylock()
lockブロックし、ロックを取得した場合にのみ戻り、trylockすぐに戻り、ロックの取得に成功または失敗する可能性があります。
lock
trylock
通常、マニュアルはそのような質問に答えることができます。