Question 4 of 15 · CIE-1 QB · 2 marks
Open in ChatGPTDifferentiate between Threads and Process.
| Point | Process | Thread |
|---|---|---|
| Definition | A program in execution | A unit of execution inside a process |
| Address space | Its own code, data and heap | Shares the process's code, data and heap |
| Context switch | Expensive (page tables, memory maps) | Cheap (registers, stack pointer) |
| Communication | Needs IPC (pipes, messages) | Through shared memory |
| Effect of a crash | Isolated to that process | Can kill the whole process |
A process is the unit of resource ownership; a thread is the unit of scheduling.