先看一下stackoverflow上是怎么说的吧 原文地址:http://stackoverflow.com/questions/771347/what-is-mutex-and-semaphore-in-java-what-is-the-main-difference Semaphore can be counted, while mutex can only count to 1. Suppose you have a thread running which accepts client…