public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Process-Shared Mutex (futex) - What is it good for ?
@ 2002-06-06 16:21 Vladimir Zidar
  2002-06-07  8:35 ` Peter Wächtler
  0 siblings, 1 reply; 7+ messages in thread
From: Vladimir Zidar @ 2002-06-06 16:21 UTC (permalink / raw)
  To: linux-kernel


 Nice to have everything as POSIX says, but how could process-shared
mutex be usefull ? Imagine two processes useing one mutex to lock shared
memory area. One process locks, and then dies (for example, it goes
sigSEGV way). Second process could wait for ages (untill reboot ?) and
it won't get lock() on that mutex ever. Wouldn't it be more usefull to
have automatic mutex cleanup after process death ? Just make a cleanup,
and mark it as 'damaged', so other processes will eventualy get error
saying that something went wrong.


-- 
Bye,

 and have a very nice day !




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-06-11 17:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 16:21 Process-Shared Mutex (futex) - What is it good for ? Vladimir Zidar
2002-06-07  8:35 ` Peter Wächtler
2002-06-07 20:17   ` Vladimir Zidar
2002-06-09  9:49     ` Peter Wächtler
2002-06-10 15:43       ` Vladimir Zidar
2002-06-11 13:19         ` Peter Wächtler
2002-06-11 17:18           ` Vladimir Zidar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox