Differentiate between process and thread in an operating system.

  • Processes are independent, and each has its own memory space.
  • Processes are lightweight and have a shorter lifecycle compared to threads.
  • Threads are heavyweight and can execute independently of processes.
  • Threads share the same memory space within a process.
Processes are instances of a program in execution, whereas threads are lightweight processes within a process. Threads share memory and resources with other threads of the same process, leading to efficient multitasking.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *