DIFFERENT BETWEEN PROCESS AND THREAD

PROCESS

  • It takes more time to create.
  • The creation of a process involves setting up new address space.
  • It takes more time to execute and terminate.
  • The process can share the same memory area.
  • Execution is very slow.
  • Switching between two processes takes more time.
  • A bit difficult to implement the communication between the process.
  • A process is loosely coupled.
  • Processes are not suitable for parallel activities.
  • A process requires more resources to execute.

THREAD

  • It takes less time to create a thread.
  • The creation of a thread does not need a new address space.
  • It takes less time to terminate.
  • Threads can share memory and files.
  • Execution is very fast.
  • Switching between the two threads is much faster.
  • Easy to implement because threads share the memory.
  • Threads are tightly coupled.
  • Most suitable for parallel activities.
  • It requires fewer resources.