up previous next contents
Next: Creating a threaded class Up: Threads Previous: Applications without multiple threads   Contents

Thread states

  • new - an empty thread, with no system resources allocated; all you can do is start it.
  • runnable - the start() method is called, and the thread is not dead or in the ``not runnable'' state.
  • not runnable - sleep() is invoked, thread calls wait(), thread is blocking on I/O.
  • dead - the end of the run() method has been reached.


up previous next contents
Next: Creating a threaded class Up: Threads Previous: Applications without multiple threads   Contents