While reading concurrency in Java, I have following doubts:
Does Java provides lower level construct then synchronized for synchronization?
In
Synchronized allows only one thread of execution to access the resource at the same time. Semaphore allows up to n (you get to choose n) threads of execution to access the resource at the same time.