线程协作-Semaphore并发限制

Semaphore(信号量)是用来控制同时访问特定资源的线程数量,它通过协调各个线程,以保证合理的使用公共资源。

原文地址:https://www.cnblogs.com/DengGao/p/Semaphore.html