when watching Modern operating system, there are the following: conditional variables (unlike semaphores) will not exist in memory . If you send a semaphore to a semaphore that no thread is waiting for, the signal will be lost I would like to ask y...
on Linux, while executing sem_timewait (), will the current thread sleep, choose another thread to execute, or block in place until it times out? after the timeout, if the lock has not been acquired, do you sleep or block the current process? ...
spin locks are easy to understand, which is constantly polling, so what is the mechanism of mutexes? What are the drawbacks of this mechanism that make it better to use spin locks in some situations? ...