3 ms·
The OS schedules threads that it wants to run. When you consider which thread to schedule, don't schedule a thread that is waiting for a lock that isn't free ye
by chrisseaton 5y ago
The OS schedules threads that it wants to run. When you consider which thread to schedule, don't schedule a thread that is waiting for a lock that isn't free yet.
- sydthrowaway 5y agoDon’t you have to constantly check the status of the lock?
- chrisseaton 5y agoNo, because if someone wants to release an OS lock they have to tell you.
- deleted 5y ago[deleted]