Where is the finer locking granularity of java's lock interface?

where does the lock interface of java have finer locking granularity?

Mar.17,2021

it's easy to get synchronnize and lock
synchronize. Managed by jvm.
the characteristics of lock.

  1. you can know whether to acquire the lock, and you can break the lock
  2. provides more lock implementations. Such as read-write lock, fair lock, unfair lock.
  3. you can set scheduled operations and polling operations

Menu