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

Assume that at time 3 no system resources are being used except for the processor and...
Assume that at time 3 no system resources are being used except for the processor and memory. Now consider the following events: At time 2: P0 is ready. At time 4: P0 is selected by CPU scheduler   At time 8: P0 executes a command to read from disk 0. At time 16: An interrupt occurs from disk unit 0: P0's read is complete. For each time 2, 4, 8 and 16, identify which state process is in. If a process...
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.
5. Assume that the reserve requirement is 5 percent. All other things being equal: Will the...
5. Assume that the reserve requirement is 5 percent. All other things being equal: Will the money supply expand more if the Fed buys $2,000 worth of bonds or if someone deposits in a bank $2,000 that he had been hiding in his cookie jar? If one creates more, how much more does it create? 6. Assume that the banking system has total reserves of $100 billion. Assume also that required reserves are 10 percent of checking deposits and that...
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.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT