i know that mutex is a binary semaphore also semaphore can be achieved in java.I am confused with synchronized block or method.Is synchronized is way to achieve mutex in java?
– Sunil KumarMar 26 '19 at 07:18
Voted to re-open because the question asks about Java's `synchronized` keyword, and the "duplicate" says nothing about that. On the other hand, the OP has shown little effort to find his own answer, so maybe the question should remain closed for that reason.
– Solomon SlowMar 26 '19 at 12:02