Semaphore is used to implement suspend
When the semaphore count = 0, the task is suspended.
When the semaphore count > 0, the task will continue to execute.
When the semaphore count = 0, the release of the semaphore will resume the task.
Multiple tasks can use the same semaphore to implement suspension. Starting from
binary semaphore
counting semaphore
You Might Like
Recommended Posts
Circuit
可能感兴趣器件