Tuesday, November 27, 2007

What is a Thread in Java?

A thread executes a series of instructions. Every line of code that is processed is done so by a thread. Few threads can run for the complete life of the applet, while others are alive for only a few milliseconds. A thread can also create a new thread or kills an existing one if when a new thread is created by the user. The Threads run in methods or constructors. The methods and constructors reside in the computer's memory themselves are lifeless in thread case. The threads go into the methods and continue to follow their instructions.


Post a Comment

<< Home