What is a Thread?
Home ] Up ] [ What is a Thread? ] Thread States ] Daemon Threads ] Thread Operations ] Some Useful Methods ] Deprecated Methods ]

 

 

A thread of control in a program.

Each thread:

  • Starts at some predefined location
  • Executes in its own context, independent of other threads in the program
  • May choose to cooperate with one or more threads in the program
  • Appears to have a degree of simultaneous execution (in the case of multiple CPUs, may actually execute simultaneously with other threads in the program)

Java has a class, Thread, which provides an abstraction to support the concept of a thread within a Java Virtual Machine. It, together with other Java features, provides the necessary functionality and context to allow Java programmers to write multithreaded programs.

 
The page was last updated February 19, 2008