This question shows research effort; it is useful and clear
8
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
複数のプロセスを持つ Linux システムでは、システム V セマフォは SEM_UNDO のオプションを許可し、セマフォを保持しているプロセスがクラッシュした場合にセマフォが「スタック」するのを防ぎます。セマフォを保持しているプロセスでのクラッシュの結果として POSIX セマフォが詰まるのを防ぐ正しい方法は何ですか? それとも、POSIXは、クラッシュの場合にセマフォが解放されることを保証しますか?