线程的信号量Semaphore

线程和进程一样也有信号量,一个资源在同一时刻只有规定数量的线程能使用。

原文地址:https://www.cnblogs.com/aaronthon/p/9852975.html