what is a thread?

Answer Posted / sharvari

Thread is a unit of program code in execution. It is unit of
dispatching.
Thread can be viewed as an independent program counter
within a process.
Basically it reduces switching overhead and helps
multiprogramming.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can constructor be protected in java?

513


What is the default value of the local variables?

511


Is list thread safe in java?

493


When we serialize an object does the serialization mechanism saves its references too?

511


What is the purpose class.forname method?

561






What are byte codes?

659


Can we define package statement after import statement in java?

560


Explain the importance of finalize() method.

569


What does the string method compareto () do?

540


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

580


Why use string handling in Java?

583


What does a method signature consist of?

512


What are pass by reference and pass by value?

529


How to create packages in java?

533


What is the difference between an array and an array list?

506