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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac04b-4f571.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac04b-4f571.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?