Limitations of intrinsic lock and solution

Java SE 5.0 introduced classes for locking called as Lock API. They are part of java.util.concurrent.locks package. Until then, only synchronized methods and synchronized blocks were available for locking.

A built-in lock called intrinstic lock or monitor lock is obtained … Read More