售票点1卖出第1张票Exception in thread "售票点3" java.lang.IllegalMonitorStateException
售票点3卖出第3张票
售票点2卖出第2张票
售票点4卖出第5张票
售票点5卖出第4张票
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
at com.dd.qn.tickets.run(beijing2008.java:21)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "售票点1" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
at com.dd.qn.tickets.run(beijing2008.java:21)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "售票点5" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
at com.dd.qn.tickets.run(beijing2008.java:21)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "售票点4" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
at com.dd.qn.tickets.run(beijing2008.java:21)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "售票点2" java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
at com.dd.qn.tickets.run(beijing2008.java:21)
at java.lang.Thread.run(Thread.java:619)