Sep 25, 2014
Post comments count0
Post likes count0
If a process crashes while holding a mutex, why is its ownership magically transferred to another process?

A customer was observing strange mutex ownership behavior. They had two processes that used a mutex to coordinate access to some shared resource. When the first process crashed while owning the mutex, they found that the second process somehow magically gained ownership of that mutex. Specifically, when the first process crashed, the second proces...