[Tux3] Tux3 kernel port - stupid semaphore tricks
Maciej Żenczykowski
zenczykowski at gmail.com
Fri Sep 19 13:43:10 PDT 2008
I'm assuming this means semaphores aren't actually implemented using waitqueues.
(and if not, why not?)
On Fri, Sep 19, 2008 at 13:30, Daniel Phillips <phillips at phunq.net> wrote:
> On Friday 19 September 2008 12:22, Maciej Żenczykowski wrote:
>> Care to explain, which of these is better, why and when?
>
> Not really better, just different. Introducing more techniques and ways
> of looking at things. The semaphore hides a state variable. The wait
> queue is likely microscopically faster, which doesn't matter unless you
> are doing bulk IO.
>
> Regards,
>
> Daniel
>
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list