...一个信号量(take that semaphore),只要有任务在使用这个信号量,其它的要进入资源的任务要停止执行(blocked from execution),当这个任务完成了对资源的使用,它会释放信号量,允许另一个任务来使用资源。
基于4个网页-相关网页
When a thread is blocked waiting for I/O, it is useful to be able to separate the waiting thread from the original thread of execution, allowing it to continue working.
当一个线程在等待 I/O 的过程中被阻止时,将等待中的线程与原始执行线程分离开来将会很有用,这将使它能继续工作。
If a timer is blocked from immediately executing it will be delayed until the next possible point of execution (which will be longer than the desired delay).
如果一个timer在将要执行的时候被阻塞,它将会等待下一个时机(比预期的延时要长)。
应用推荐