What is Difference between thread and process?

Answer Posted / munshimubbi

process is a execution of a program and program contain set
of instructions but thread is a single sequence stream
within the process.thread is sometime called lightweight
process. single thread alows a os to perform singler task
ata time similarities between process and threads are:
1)share cpu.
2)sequential execution
3)create child
4)if one thread is blocked then the next will be start to
run like process.
dissimilarities:
1)threads are not independent like process.
2)all threads can access every address in the task unlike
process.
3)threads are design to assist onr another and process
might or not might be assisted on one another.

Is This Answer Correct ?    159 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is fragmentation?

595


How does gcd work?

560


Explain what is the memory wall problem?

614


When does thrashing occur?

542


What is operating system in computer?

544






What are the four common types of files?

535


How do I copy a full file path?

537


How do I find recently downloaded files?

553


How do I scan a usb drive for errors?

538


Is program files x86 64 bit?

516


How do an incremental process model and certification work together to produce high quality software? In your own words, describe the intent of certification in the clean room software engineering context.

1405


How does disk operating system work?

513


Do you know what is a binary semaphore?

582


Define max, min heap and search time of heap.

629


What is the need of device status table?

543