0% found this document useful (0 votes)
222 views

Difference Between Process and Thread

Process and thread differ in creation time, termination time, resource usage, isolation, and scheduling. A process is a program during execution and has its own memory space, while a thread is a segment within a process that can execute concurrently with other threads in the process and shares the process's resources. Generally, threads have lower overhead than processes for tasks like context switching and communication.

Uploaded by

saddamjamali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
222 views

Difference Between Process and Thread

Process and thread differ in creation time, termination time, resource usage, isolation, and scheduling. A process is a program during execution and has its own memory space, while a thread is a segment within a process that can execute concurrently with other threads in the process and shares the process's resources. Generally, threads have lower overhead than processes for tasks like context switching and communication.

Uploaded by

saddamjamali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Difference between Process and Thread

Last Updated: 17-09-2020


Process:
Process means any program is in execution. Process control block controls the operation of
any process. Process control block contains information about processes for example Process
priority, process id, process state, CPU, register, etc. A process can creates other processes
which are known as Child Processes. Process takes more time to terminate and it is isolated
means it does not share memory with any other process.
Thread:
Thread is the segment of a process means a process can have multiple threads and these
multiple threads are contained within a process. A thread have 3 states: running, ready, and
blocked.
Thread takes less time to terminate as compared to process and like process threads do not
isolate.

Difference between Process and Thread:


S.NO PROCESS THREAD
Process means any program is in Thread means segment of a

1. execution. process.

Process takes more time to Thread takes less time to

2. terminate. terminate.

3. It takes more time for creation. It takes less time for creation.

It also takes more time for It takes less time for context

4. context switching. switching.

Process is less efficient in term Thread is more efficient in term

5. of communication. of communication.

Process consume more

6. resources. Thread consume less resources.

7. Process is isolated. Threads share memory.

Process is called heavy weight Thread is called light weight

8. process. process.

Thread switching does not

require to call a operating

Process switching uses interface system and cause an interrupt to

9. in operating system. the kernel.


If one server process is blocked

no other server process can Second thread in the same task

execute until the first process could run, while one server

10. unblocked. thread is blocked.

Thread has Parents’ PCB, its

Process has its own Process own Thread Control Block and

Control Block, Stack and Stack and common Address

11. Address Space. space.

You might also like