ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
ni.com is currently experiencing issues. Support teams are actively working on the resolution.
We appreciate your patience as we improve our online experience.
|
生産者 / 消費者ループのキューのデザインパターンはデータのオーバーフローや損失を防ぐのによく使われる方法です。生産者 / 消費者デザインパターンではキューにデータが存在している場合にのみ消費者ループが実行される同期が行われるのが利点です。
他の回避策としてはセマフォを用い、書き込む際に変数のリソースをロックする方法があります。
|