Thread vs Process

 https://www.guru99.com/difference-between-process-and-thread.html


Properties of Process

Here are the important properties of the process:

  • Creation of each process requires separate system calls for each process.
  • It is an isolated execution entity and does not share data and information.
  • Processes use the IPC(Inter-Process Communication) mechanism for communication that significantly increases the number of system calls.
  • Process management takes more system calls.
  • A process has its stack, heap memory with memory, and data map.

Properties of Thread

Here are important properties of Thread:

  • Single system call can create more than one thread
  • Threads share data and information.
  • Threads shares instruction, global, and heap regions. However, it has its register and stack.
  • Thread management consumes very few, or no system calls because of communication between threads that can be achieved using shared memory.

Comments

Popular posts from this blog

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model