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

Why string is not a wrapper class?

642


What are the two basic ways in which classes that can be run as threads may be defined?

552


What is anti pattern in programming?

499


Can you explain the private protected field modifier?

571


How many types of flags are there?

523






What causes memory leak in java?

479


What is json parser in java?

617


What is array initialization in java?

492


What is the difference between preparedstatement and statement in java?

553


Is binary a low level language?

506


What is the relationship difference the canvas class and the graphics class?

560


What is the equal sign?

565


What are the benefits of java?

573


What is identifier with example?

570


Which sorting algorithm is best in java?

535