1.java.util.concurrent.locks packet inside the main interface Lock,condition,readwritelock, the main class is Reentrantlock,reentrantreadwritelock, Reentrantreadwritelock.readlock,reentrantreadwritelock.writelock,locksupport
The main methods in 2.ReentrantLock are: Lock (), Unlock (), Trylock (), lockinterruptibly (), Newcondition (), Isheldbycurrentthread (), IsLocked ();
Isfair (), Hasqueuedthread (), GetOwner (), getqueuedthreads ();
The main methods in 3.Condition are await (), signal (), Signalall ();
The main methods in 4.ReentrantReadWriteLock are: Readlock (), Writelock ();
The main methods in 5.LockSupport are: Park (), Unpark ();
Locksupport.park (Thread t):D isables the current thread for thread scheduling purposes unless the permit.
Locksupprt.unpark (thread T): makes available the permit for the given Thread, if it is not already available.
The java.util.concurrent.locks of common classes and methods in Java multithreading