On Fri, Jun 21, 2002 at 05:08:37PM +0300, Momchil Velikov wrote: > >>>>> "Jan" == Jan Hudec <bulb@ucw.cz> writes: > Jan> Semaphores are for mutual exclusion. > Hardly. _Binary_ semaphores are for mutual exclusion. Counting semaphores have other uses, e.g. producer/consumer. Note, that ther is nothing like binary semaphore in linux kernel! Because semaphore can be always used as binary. The spinlocks behave like binary semaphores, but they are for SMP exclusion only (no shcheduling allowed under spinlock). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/