Answered step by step
Verified Expert Solution
Question
1 Approved Answer
That's all the information about the question that teacher give me for the homework 2. (24 points) Consider a system where there are 3 processes,
That's all the information about the question that teacher give me for the homework
2. (24 points) Consider a system where there are 3 processes, A, B, and C. Their details are as follows: A: Arrival time = 0, CPU-I/O cycle = B: Arrival time = 2, CPU-I/O cycle = C: Arrival time = 4, CPU-I/O cycle = Assuming the access to I/O devices is concurrent: Show their execution under Round Robin (RR), time quantum = 2 Show their execution under SPN Show their execution under HRRN For each of these runs, identify waiting time for each process. (Recall waiting time = [time when process completes]-[time when process would have completed if there were no competing processes].) Make the following assumptions: 1. Regarding SPN, use the NEXT CPU time to decide the process to be selected. For example, if process A and B are considered to be executing and both are about to execute their first CPU cycle then the time for which they run is 6 and 3, respectively. 2. Regarding HRRN, use the 'total time waiting so far' and 'total service time' in computing HRRN. 3. Note that with round robin, even if the time quantum is 2, if the process starts I/O or finishes after 1 time unit then another process will start immediatelyStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started