Q1. Assume you have a system with three processes (X, Y, and Z) and a single...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q1. Assume you have a system with three processes (X, Y, and Z) and a single CPU. Process X has the highest priority, process Z has the lowest, and Y is in the middle. Assume a priority-based scheduler (i.e.. the scheduler runs the highest priority job, performing preemption as necessary). Processes can be in one of five states: RUNNING, READY, BLOCKED, NOT YET CREATED, or TERMINATED. Given the following cumulative timeline of process behavior, indicate the state the specified process is in AFTER that step, and all preceding steps, have taken place. For all questions in this Part, use the following options for each answer: 1. Running 2. Ready 3. Blocked 4. Process Has Not Created Yet 5. Terminated Step 1: Process X is loaded into memory and begins; it is the only user-level process in the system. i) Process X is in which state? ii) Process Y is in which state? Step 2: The running process issues an I/O request to the disk. iii) Process X is in which state? iv) Process Y is in which state? Step 3: The previously issued I/O request completes. v) Process X is in which state? vi) Process Y is in which state? vii) Process Z is in which state? Step 4: The running process completes. vii) Process X is in which state? ix) Process Y is in which state? x) Process Z is in which state? (10 Marks) Q1. Assume you have a system with three processes (X, Y, and Z) and a single CPU. Process X has the highest priority, process Z has the lowest, and Y is in the middle. Assume a priority-based scheduler (i.e.. the scheduler runs the highest priority job, performing preemption as necessary). Processes can be in one of five states: RUNNING, READY, BLOCKED, NOT YET CREATED, or TERMINATED. Given the following cumulative timeline of process behavior, indicate the state the specified process is in AFTER that step, and all preceding steps, have taken place. For all questions in this Part, use the following options for each answer: 1. Running 2. Ready 3. Blocked 4. Process Has Not Created Yet 5. Terminated Step 1: Process X is loaded into memory and begins; it is the only user-level process in the system. i) Process X is in which state? ii) Process Y is in which state? Step 2: The running process issues an I/O request to the disk. iii) Process X is in which state? iv) Process Y is in which state? Step 3: The previously issued I/O request completes. v) Process X is in which state? vi) Process Y is in which state? vii) Process Z is in which state? Step 4: The running process completes. vii) Process X is in which state? ix) Process Y is in which state? x) Process Z is in which state? (10 Marks)
Expert Answer:
Answer rating: 100% (QA)
For Step 1 i Process X is in the Running state because its the only userlevel process in the system ... View the full answer
Related Book For
Posted Date:
Students also viewed these finance questions
-
If someone is in the 25 percent tax bracket, this means that ______ is owed in taxes. a. 25 percent of his or her salary b. 25 percent of his or her adjusted gross income c. 25 percent of his or her...
-
Ashley Travis, of Harrisburg, Illinois, is in the 25 percent marginal tax bracket and is considering the tax consequences of investing $2,000 at the end of each year for 30 years in a tax-sheltered...
-
Jonathan has the following separate casualties during the year: Decrease in Fair Market Value Adjusted Basis Business furniture $5,000 3 years $4,000 15,000 Business machinery 14,000 3 years The...
-
The electron affinity of oxygen is -141kJ/mol, corresponding to the reaction O (g) + e- O- (g) The lattice energy of K2O(s) is 2238kJ/mol. Use these data along with data in Appendix C and Figure 7.9...
-
A Pennsylvania Chick-fil-A franchise, on its own, provided food for a local marriage seminar, The Art of Marriage: Getting to the Heart of Gods Design. A group opposed to gay and lesbian marriage...
-
What are the key concepts embodied within the COSO Report's definition of internal control?
-
Suppose Apex Electrical Supplys Inventory account showed a balance of \($43,000.\) A physical count showed \($41,800\) of goods on hand. To adjust the inventory account, Apex Electrical Supply, Inc.,...
-
China Express owns a number of stores that sell fast food. As part of its compensation packages, China Express provides employees with bonuses based on customer satisfaction surveys. Recent analysis...
-
Calculate the percent error between the measured quantity, A, and the theoretical quantity, B. A = 14 B = 17 Enter your answer as a percentage, rounded to the nearest whole number. Do NOT input the...
-
1. How will you characterize Tupperwares distribution strategy in relation to the theoretical models? 2. What are the advantages and disadvantages of Tupperwares distribution model? 3. How do you...
-
Investment bank Canaccord's Think Childcare (TNK) initiation of coverage states: "Building lease costs Rent expense is the second largest cost and TNK reported rent/sales of 12.1%, within the...
-
To determine daily energy consumption in kilowatt-hours, divide the wattage of an appliance by 1,000 and then multiply by the number of hours the item is used per day.
-
If you were a parent of an infant who you were going to put into childcare, would you prefer a center-based environment or a family childcare environment? What about if you were a parent of a toddler?
-
What causes (not including the stock market crash) do you believe had the biggest impact in causing the depression? Can a similar factor cause another "great" depression today?
-
Bella deposits $300 per month into an account paying 6% nominal interest compounded monthly for 3 years, to be used to purchase a car. Which equation should she use to compute the price of the most...
-
On the Amanda Tremblay at citrine Sofware solution(Harvard case) which are the main resources that allow the company to have a competitive advantage?
-
Atlanta Inc. holds an AFS bond investment issued by Falcons Corporation. The amortized cost of the investment is $140,500 on December 31. Atlanta Inc. estimates the fair value of the bonds to be...
-
Provide a draft/outline of legal research involving an indigenous Canadian woman charged with assault causing bodily harm under (Sec 267b) of the Criminal Code, where the crown wants a 12-month jail...
-
If the supply and demand curves cross at a price of $2, at any price above that there will be a). An equilibrium b). A surplus c). A shortage d). A crisis
-
The existence of the federal income tax and the welfare system serve as the primary elements of a. Discretionary fiscal policy. b. Non-discretionary fiscal policy. c. Monetary policy. d. Exchange...
-
Suppose you observe that minor changes in supply seem to cause dramatic changes in price, you would conclude that A. Demand is unit elastic. B. Demand is elastic. C. Demand is inelastic. D. Demand is...
-
Continuing Problem 13, the string is stretched to the position shown in Figure 2.45. Calculate the natural frequency of the system using the following parameter values: \(m g=2 \mathrm{lb}, T=50...
-
Derive the equation of motion for a uniform stiff rod restrained from vertical motion by a torsional spring of stiffness \(K\) and two translational springs each of stiffness \(k\), as shown in...
-
A uniform rigid and massless rod is pinned at one end and connected to ground via a spring at the other end. At midpoint on the rod, a spring is connected to a mass which is connected to a fixed...
Study smarter with the SolutionInn App