Question: (a) 1. Since multi-processing provides concurrency, what advantage do threads provide? 2. Can multiple process programs (such as your assignment) also be multi-threaded? (b) 1.
(a) 1. Since multi-processing provides concurrency, what advantage do threads provide?
2. Can multiple process programs (such as your assignment) also be multi-threaded?
(b) 1. Are semaphores devices, hardware, cores, memory, functions or registers? (very briefly, explain or describe)
2. When should semaphores be used: all programs, in multi-process code, in multi-threaded code, in deadlock code, in grids? (very briefly, explain or describe)
(c) When processes are swapped,
1. Where are they before they are swapped and where are they swapped to?
2. Why are they swapped (what benefit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
