2 ms·
That's right; avoid doing anything that could block while holding a lock: acquiring another lock, waiting on a semaphore, and so on. Note how condition variabl
by kazinator 8y ago
That's right; avoid doing anything that could block while holding a lock: acquiring another lock, waiting on a semaphore, and so on.
Note how condition variables have an aspect of this built-in: the wait operation gives up the mutex.