Basic CS-Operating System [TCS Placement]: Sample Questions 23 - 23 of 35

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 23

Operating System

Write in Short

Short Answer▾

Differentiate between process and thread


Table of Differentiate between Process and Thread
An executing instance of a program is called a process.A thread is a subset of the process.
It has its own copy of the data segment of the parent process.It has direct access to the data segment of its process
Processes must use inter-process communication to communicate with sibling processes.Threads can directly communicate with other threads of its process.
Processes have considerable overhead.Threads have almost no overhead.
New processes require duplication of the parent process.New threads are easily created.
Processes can only exercise control over child processes.Threads can exercise considerable control over threads of the same process.
Any change in the parent process does not affect child processes.Any change in the main thread may affect the behavior of the other threads of the process.
Run in separate memory spaces.Run in shared memory spaces.
Most file descriptors are not shared.It shares file descriptors.
There is no sharing of file system context.It shares file system context.
It does not share signal handling.It shares signal handling.
In multiple processes each process operates independently of the others.One thread can read, write or change another thread՚s data.
If one process is blocked, then no other process can execute until the first process is unblocked.While one thread is blocked and waiting, a second thread in the same task can run.
Process is heavy weight or resource intensive.Thread is light weight, taking lesser resources than a process.

Developed by: