Question

In: Computer Science

Assume that at time 5 no system resources are being used except for the processor and...

Assume that at time 5 no system resources are being used except for the processor and memory. Now consider the following events:
At time 5: P1 executes a command to read from disk unit 1.
At time 15: P2's time slice expires.
At time 18: P4 executes a command to write to disk unit 1
At time 20: P3 executes a command to read from disk unit 2.
At time 24: P2 executes a command to write to disk unit 1
At time 28: P2 is swapped out.
At time 33: An interrupt occurs from disk unit 2: P3's read is complete.
At time 36: An interrupt occurs from disk unit 1: P1's read is complete.
At time 38: P5 terminates.
At time 40: An interrupt occurs from disk unit 1: P2's write is complete.
At time 44: P2 is swapped back in.
At time 48: An interrupt occurs from disk unit 1: P4's write is complete.
For each time 22, 25, 37, and 47, identify which state each process is in. If a process is
blocked, further identify the event on which is it blocked.

Solutions

Expert Solution


Related Solutions

Commodity pricing contracts are being used for managing risk in long term producer-processor contracting relationships. Analyze...
Commodity pricing contracts are being used for managing risk in long term producer-processor contracting relationships. Analyze challenges of using long-term supply contracts. (10marks)
Assume for arithmetic, load/store, and branch instructions, a processor has CPIs of 1, 12, and 5,...
Assume for arithmetic, load/store, and branch instructions, a processor has CPIs of 1, 12, and 5, respectively. Also assume that on a single processor a program requires the execution of 2.56E9 arithmetic instructions, 1.28E9 load/store instructions, and 256 million branch instructions. Assume that each processor has a 2 GHz clock frequency. Assume that, as the program is parallelized to run over multiple cores, the number of arithmetic and load/store instructions per processor is divided by 0.7 x p (where p...
How is Management Information System is being used in industry
How is Management Information System is being used in industry
Assume you have the following jobs to execute with one processor: i t(pi) Arrival Time 0...
Assume you have the following jobs to execute with one processor: i t(pi) Arrival Time 0 75 0 1 40 10 2 25 10 3 20 80 4 45 85 Using the table, assume the context switch time is five time units with RR scheduling. Create a Gantt chart illustrating the execution of these processes. What is the turnaround time for process p3? What is the average wait time for the processes?
Answer the following questions about cache coherency protocols in a dual-processor system. a) If each processor...
Answer the following questions about cache coherency protocols in a dual-processor system. a) If each processor has a separate cache, what is the main advantage of the 4-state MESI snoopy cache coherency protocol compared to a snoopy cache coherency protocol that uses only 3 states M, S and I (modified, shared and invalid)? b) Suppose that processor P1 (in a dual-processor system) writes to a memory block. A copy of this same memory block is already in a modified line...
Write on how 3D printers are being used in the health system
Write on how 3D printers are being used in the health system
Assume that the prices of resources used to produce automobiles increases. What does the supply and...
Assume that the prices of resources used to produce automobiles increases. What does the supply and demand model predict will happen as a result in the market for automobiles? Question 4 options: A) Equilibrium price and quantity decrease. B) Equilibrium price increases, and equilibrium quantity decreases. C) Equilibrium price and quantity increase. D) Equilibrium price decreases, and equilibrium quantity increases.
The implication of resources being mobile domestically is that:
The implication of resources being mobile domestically is that:A) there is often unemployment.B) capital and land are often not suited for use in other industries.C) labor is paid the same wage and capital receives the same rental price in all domestic industries.D) they lose the chance to become guest workers in other nations.
Go Huskies is considering replacing a point-of-sale system that is currently being used. The old system...
Go Huskies is considering replacing a point-of-sale system that is currently being used. The old system is fully depreciated but can be used for another 4 years, at which time it would have no salvage value. Go Huskies can sell the old system for $55,000 on the date that the new system is purchased. Go Huskies has an effective tax rate of 30%, so the gain on the sale of the old system will be fully taxable. If the purchase...
Go Huskies is considering replacing a point-of-sale system that is currently being used. The old system...
Go Huskies is considering replacing a point-of-sale system that is currently being used. The old system is fully depreciated but can be used for another 4 years, at which time it would have no salvage value. Go Huskies can sell the old system for $55,000 on the date that the new system is purchased. Go Huskies has an effective tax rate of 30%, so the gain on the sale of the old system will be fully taxable. If the purchase...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT