Operating System (2140702)

BE | Semester-4   Winter-2018 | 10-12-2018

Q1) (b)

Define and differentiate process and thread.

Process Thread
System calls involved in process. No system calls involved.
Processes require more time for context switching as they are heavier. Threads require less time for context switching as they are lighter than processes.
Different process have different copies of code and data. Sharing same copy of code and data can be possible among different threads.
Processes are independent. Threads exist as subsets of a process. They are dependent
Processes are totally independent and don’t share memory. A thread may share some memory with its peer threads.
Processes require more resources than threads. Threads generally need less resources than processes.