Yup I agree
![](smile.gif)
, I hope we have straightened out some things (probably we just messed them up
![](wink.gif)
). And about Peterson''s algorithm, besides the fact that it doesn''t scale well for 2+ threads, it also uses busy-wait, which is a big no-no (since that means unneccessary thread-switches (and therefor context-switches)).