Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

15) The create and destroy functions govern the existence of a process. The process then moves through the running, ready, and blocked states based

15) The create and destroy functions govern the existence of a process. The process then moves through the

15) 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. suspend (p) { if (p.process_state == blocked) { p.process_state = suspended_blocked. } else { } p.process_state = suspended_ready activate (p) { if (p.process_state == suspended_ready) { p.process_state. ready } else { } = p.process_state blocked scheduler () = What changes must be made to the scheduler or other functions to make suspend/activate work correctly? help: there are two changes (^_^) (6 points)

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

To make the suspend and activate functions work correctly you need to make two changes in the schedu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operating Systems

Authors: Gary Nutt

3rd edition

0-201-77344-9, 978-0201773446

More Books

Students also viewed these Programming questions