Process means any program is in execution. Process control block controls the operation of any process. Process control block contains the 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 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:
|1.||Process means any program is in execution.||Thread means segment of a process.|
|2.||Process takes more time to terminate.||Thread takes less time to terminate.|
|3.||It takes more time for creation.||It takes less time for creation.|
|4.||It also takes more time for context switching.||It takes less time for context switching.|
|5.||Process is less efficient in term of communication.||Thread is more efficient in term of communication.|
|6.||Process consume more resources.||Thread consume less resources.|
|7.||Process is isolated.||Threads share memory.|
- Difference between Thread.start() and Thread.run() in Java
- Operating System | Process-based and Thread-based Multitasking
- Operating System | User Level thread Vs Kernel Level thread
- Operating System | Process Table and Process Control Block (PCB)
- Pass the value from child process to parent process
- Process states and Transitions in a UNIX Process
- Operating System | Thread
- Mutex lock for Linux Thread Synchronization
- Lock framework vs Thread synchronization in Java
- TOC | Concatenation process in DFA
- TOC | Complementation process in DFA
- TOC | Reversal process in DFA
- TOC | Union process in DFA
- Communication between two process using signals in C
- Get/Set process resource limits in C
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.