Previous Next Table of Contents

Threads


Thread State Diagram
    Goes to "Not Runnable" if
  • suspend() method
  • sleep() method
  • wait() method
  • blocking on I/O
    Goes back to "Runnable" if
  • resume() method
  • after delay
  • notify() method
  • I/O completion
Thread state diagram.
Lifted from The Java Tutorial (Sun Microsystems).

Demonstrations


Previous Next Table of Contents

J. Anthony Parker, MD, PhD, Tony_Parker@bih.harvard.edu