What is mutex and semaphore in Java ? What is the main difference?

前端 未结 11 1553
梦毁少年i
梦毁少年i 2020-11-27 09:28

What is mutex and semaphore in Java ? What is the main difference ?

11条回答
  •  时光取名叫无心
    2020-11-27 09:44

    A mutex is often known as a binary semaphore. Whilst a semaphore can be created with any non-zero count a mutex is conceptually a semeaphore with an upper count of 1.

提交回复
热议问题