Java线程等待中Thread.sleep()、Object.wait()、LockSupport.park、UNSAFE.park()的原理与区别
Thread.sleep()源码如下:publicstaticnativevoidsleep(longmillis)throwsInterruptedException;publicstaticvoidsleep(longmillis,intnanos)throwsInterruptedException{if(millis999999){thrownewIllegalArgumentExcept