[Tux3] Tux3 kernel port - stupid semaphore tricks

Daniel Phillips phillips at phunq.net
Fri Sep 19 13:30:26 PDT 2008


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