
19 Sep
2006
19 Sep
'06
4:16 p.m.
"Peter Dimov" <pdimov@mmltd.net> writes:
Peter Dimov wrote:
This is what CRITICAL_SECTIONs do, and I recall being told by Alexander Terekhov that it is suboptimal (threads take the slow path when they could take the fast path). My tests with a contended queue seemed to prove him right.
Unfortunately, I can no longer find his post where he explained that with Google.
Here it is:
Thanks. I'll have to look at Alexander's proposed swap-based implementation. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk