3 ms·
Given it uses a queue that has a producer and a consumer, I wonder if a monitor will be required?
by chris_wot 6y ago
Given it uses a queue that has a producer and a consumer, I wonder if a monitor will be required?
- junon 6y agoCan you elaborate? What do you mean by monitor?
- gpderetta 6y agoI believe they are referring to the synchronization primitive [1], conceptually a condition variable plus a mutex. [1] https://en.wikipedia.org/wiki/Monitor_(synchronization) https://en.wikipedia.org/wiki/Monitor_(synchronization)
- gpderetta 6y agoI think that either futexes or polling can be used for notification.