Thread newBorn = myThreadClass();
A thread in this state can only be started or stopped. Calling any method other than start or stop makes no sense and causes an IllegalThreadStateException.
notify, for example, wakes up a single thread that is waiting on the object's
monitor. A thread waits on an object's monitor by calling one of
the wait
methods.
notify should only be called by a thread that is the owner of the object's monitor. A thread becomes the owner of the object's monitor in one of three ways:
synchronized
statement
that synchronizes on the object.
Class,
by executing a
synchronized static method of that class.
Only one thread at a time can own an object's monitor.