Question: When implementing a parallel algorithm, explain the advantages of using threads to using multiple processes. A running process may transition to one of the following

  1. When implementing a parallel algorithm, explain the advantages of using threads to using multiple processes.
  2. A running process may transition to one of the following states - Waiting, Ready, Terminated or Swapped. Explain what would cause a running process to transition to each one of these states
  3. Why is it easier to program "synchronous" inter-process communication rather than "asynchronous" inter-process communication?
  4. Discuss the differences between an ordinary pipe and a named pipe.
  5. Both Linux and Windows map one user thread to one kernel thread. Explain why this is preferred over pure user-threads or pure kernel-threads.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Advantages of using threads to using multiple processes when implementing a parallel algorithm Threads are lightweight Creating and destroying threads is much faster and less expensive than creating a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!