Program vs Process vs Thread

||
Posted 1 year, 7 months ago
||
Views 244
||
1 min read
0 reactions

Main differences between process and thread:

🔹 Processes are usually independent, while threads exist as process subsets.
🔹 Each process has its own memory space. Threads that belong to the same process share the same memory.
🔹 A process is a heavyweight operation. It takes more time to create and terminate. 
🔹 Context switching is more expensive between processes.
🔹 Inter-thread communication is faster for threads.


0 reactions

Discussion

tanay
Posted 1 year, 1 month ago

Very good article, shot, to the point, clear explanation.



Looking for Freelancing Jobs
Joined on April 15, 2020

Latest Videos