Subject: Re: semaphore
To: None <seong@etri.re.kr>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 03/14/2002 10:43:23
On Thu, Mar 14, 2002 at 01:00:56PM +0900, seong@etri.re.kr wrote:
> I want to use a count semaphore.
Hum, a semaphore could block. You have to be very carefull with this (you
don't want to sleep if you're in an interrupt routine for exanple).
There is not semaphore primitive in the kernel, as far as I know.
If this is really what you want you'll have to implement it using locking
primitives.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
NetBSD: 23 ans d'experience feront toujours la difference
--