What is mutex and semaphore in Java ? What is the main difference ?
A semaphore is a counting synchronization mechanism, a mutex isn't.