Exception in thread "Thread-1" java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at com.haha.Resource.out(ProducerConsumerDemo.java:41)
at com.haha.Consumer.run(ProducerConsumerDemo.java:72)
at java.lang.Thread.run(Thread.java:722)
Thread-0...生产者...+商品+--1
Thread-1...消费者...+商品+--1