Posted Jan 5, 2006 7:30 UTC (Thu) by thedevil
Parent article: Goodbye semaphores?
So what does the kernel do when a process releases a mutex? There can
be multiple other processes wanting to lock it. Are they still linked
together in a list structure? If yes, why is the mutex such a big win
over a semaphore - it seems like the same thing except that the counter
is at most 1. And if not, how does the kernel pick which process gets
its turn? It does pick a single one, right - we're not going back to
the thundering herd scenario?
to post comments)