El Thu, Apr 30, 2009 at 06:56:51PM -0400 Robert P. J. Day ha dit:
> that is, at least binary semaphores?
i'd say yes. afaik a binary semaphore offers no advantage over a
mutex, while mutexes have better performance and clearer and enforced
semantics.
> and are there any non-binary semaphores actually in use in the
> kernel?
some time ago i converted a huge bunch of binary semaphores to
mutexes or spinlocks. doing this i encountered some uses of non-binary
semaphores (maybe 10 - 20). i don't remember the places, grep or lxr
are your friends in case you are interested.
--
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona
Insanity: doing the same thing over and over
again and expecting different results
(Albert Einstein)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ