Question: Please help with parts a through d The create and destroy functions govern the existence of a process. The process then moves through the running,

Please help with parts a through d

Please help with parts a through d The create and destroy functions

The create and destroy functions govern the existence of a process. The process then moves through the running, ready, and blocked states based on resource needs, as discussed in subsequent sections. To support process suspension, two new states are introduced, suspended_ready and suspended_blocked, to keep track of the state in which a process was suspended. The following pseudo code shows the corresponding suspend() and activate() functions. (a) What changes must be made to the scheduler or other functions to make suspend/activate work correctly? (b) Why is the scheduler called only in activate but not in suspend? (c) A process must be prevented from calling suspend() or activate() on itself. Why? (d) A process must be prevented from calling suspend() on an already suspended process, or calling activate() on a currently active (ready) process. Why

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!