Download as pdf or txt
Download as pdf or txt
You are on page 1of 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