what is a thread?

Answer Posted / bhushan

Thread is light weight process.
One Process can have multiple threads.
Eg:
I opened Microsoft Word doc and writing at the same time
spell checker is also running.
It implies in 1 process multiple threads can run
simultaneously with less overhead.
To create separate process for different functionality will
create overhead.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

583


What is meant by object?

583


Explain method overloading?

575


How to declare an arraylist in java?

485


Difference between association, composition and aggregation?

565






Difference between a class and an object?

584


What are internal variables?

567


What is the latest java version?

565


Can we declare the main method of our class as private?

560


Can an arraylist be empty?

570


Why java doesn’t support multiple inheritances?

592


What are the advantages of unicode?

551


What is the difference between variable & constant?

549


Explain the difference between an Interface and an Abstract class?

640


What is the difference between iterator and enumeration ?

518