find out a snip of multi-thread testing code. when try to run it on NetBeans, encounter an error
IllegalMonitorStateException: current thread not owner
After investigation, find out the root cause is:
can't do a notifyAll without having a lock on the object first.
So record it as a knowledge capture.
code as following:
Main.java
Forum.java
Member.java