15) The create and destroy functions govern the existence of a process. The process then moves...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Answer rating: 100% (QA)
To make the suspend and activate functions work correctly you need to make two changes in the schedu... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The results approach emphasizes individual traits that remain stable throughout an individuals life span emphasizes what employees do and how the work is done emphasizes the outcomes and results...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
In using the bolt cutter shown, a worker applies two 300-N forces to the handles. Determine the magnitude of the forces exerted by the cutter on the bolt. 300 N 12 mm 24 mm E 24 mm 460 mm 96 mm 300 N...
-
The trailer has a total weight W and center of gravity at G which is directly over its axle. If the axle has a diameter D, the radius of the wheel is r, and the coefficient of kinetic friction at the...
-
What practical reason may motivate companies to rarely accrue losses for ongoing litigation?
-
Using the Gapminder software (https://www.gapminder .org/tools), set the vertical axis to Age at 1st marriage (women) and the horizontal axis to Babies per woman. This scatterplot shows the mean age...
-
Logan White is general manager of Valuepoint Salons. During 2018, White worked for the company all year at a $13,600 monthly salary. He also earned a year-end bonus equal to 15% of his annual salary....
-
Harley-Davidson, inc. (HOG), is a leading motorcycle manufacturer in the United States. The company manufactures and sells a number of different types of motorcycles, a complete line of motorcycle...
-
Consider the following January transactions: 1. On January 1, 20X1, three persons, James, Bosh, and Wade, formed JBW Corporation. JBW is a wholesale distributor of electronic equipment. The company...
-
Two types of printed circuit boards A and B are produced in a computer manufacturing company. The component placement time, soldering time, and inspection time required in producing each unit of A...
-
If \($5\),000 is borrowed today and \($8\),955 is paid back in 10 years, what interest rate compounded annually has been earned?
-
Using the economic balance sheet approach, the Laws economic net worth is closest to: A. \($925\),000. B. \($1\),425,000. C. \($1\),675,000. Meg and Cramer Law, a married couple aged 42 and 44,...
-
Risks and returns are generally ___ correlated. a. inversely b. negatively c. not d. positively
-
Do a Google search on something like financial calculators; mortgage calculators; loan calculators; or similar. Locate one to your liking and put into it a loan of \($225\),000 at 7 percent over 360...
-
An interest rate is given as 5 percent per year nominal. Determine the effective annual rate if a. compounding is annual. b. compounding is daily. c. compounding is continuous.
-
Choose a correct statement about C language arrays. a. All the above O b. An array size cannot be changed once it is created. O c. To access Nth element of an array students, use students [n-1] as th...
-
Federated Shipping, a competing overnight delivery service, informs the customer in Problem 65 that they would ship the 5-pound package for $29.95 and the 20-pound package for $59.20. (A) If...
-
Explain how the UNIX file protection mechanism could be used to allow any process to read and modify a system file by using special commands named gerSpecial and putSpecial.
-
What is the advantage of having a file caching server allow only one client to have a file open for writing at any time?
-
Suppose a computer with a pipelined functional unit contains a 4-stage pipe, with the time for each stage to execute being 50 s. What is the maximum number of instructions that can be executed by the...
-
When would you prefer to use busy-wait I/O over interrupt-driven I/O?
-
Draw UML diagrams for the read of one character from an 8251 UART. To read the character from the UART, the device needs to read from the data register and to set the serial port status register bit...
-
Draw a UML state diagram for software processing of a vectored interrupt. The vector handling is performed by software (a generic driver) that executes as the result of an interrupt. Assume that the...
Study smarter with the SolutionInn App