sleep/wakeup sequence using tsleep_interlock
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Sun Aug 19 01:10:23 PDT 2007
Aggelos Economopoulos wrote:
* (enter critical section)
* (acquire upper level lock)
* tsleep_interlock(blah)
* (release upper level lock)
* tsleep(blah, ...)
* (exit critical section)
It is not obvious to me why the first two operations can't be reversed (i.e.
first acquire lock, then enter critical section). Can they?
Yes, they can :)
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
More information about the Kernel
mailing list