3 ms·
Agreed. It's better idea to use mutex + 2 semaphores to implement queue with blocking: http://en.wikipedia.org/wiki/Producer-consumer_problem#Using_semaphores h
by mkup 14y ago
Agreed. It's better idea to use mutex + 2 semaphores to implement queue with blocking:
http://en.wikipedia.org/wiki/Producer-consumer_problem#Using_semaphores http://en.wikipedia.org/wiki/Producer-consumer_problem#Using...
(it's a classical computer science problem with classical solution)