Re:Threads without locks
by albertzeyer on Sunday September 05, 2010 @11:23AM
(#1664640)
I'm just curious: For the channel implementation itself, of course you need locking, don't you? Or how is it possible to implement such a message queue without synchronisation?
[ Parent
| on HN ]
I've not done it myself, but once when I thought I'd need such a queue I found this pseudo code and references:
http://www.cs.rochester.edu/research/synchronization/pseudoc...
Condition variables (although somewhere underneath, locks are probably used).