9.2 Controlling the thread
-
start()
-
stop()
-
suspend()
-
resume()
-
Thread.sleep()
-
join()
-
Thread.yield()
Cycle ( status ) of a thread:
-
NewBorn
-
Runnable (suspend(), wait(), sleep(), I/O blocking to Pause)
-
Pause (resume(), notify(), sleep time-out, I/O finished to Runnable)
-
Stop
Case Study: MethodTest.java