DragonFly kernel List (threaded) for 2007-08
Re: sleep/wakeup sequence using tsleep_interlock
Aggelos Economopoulos wrote:
* (enter critical section)
* (acquire upper level lock)
* (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 :)
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 / \