java多线程下,unlock报java.lang.IllegalMonitorStateException
测试代码若在代码里使用的是tryLock和unlockprivateLockmLock=newReentrantLock();publicvoiddemo(){for(inti=0;i<10;i++){finalintfinalI=i;newThread(newRunnable(){@Overridepublicvoidrun(){test(finalI);}}).start();}}public