Question 21
Consider a set of n tasks with known runtimes r1, r2, .... rn to be run on a uniprocessor machine. Which of the following processor scheduling algorithms will result in the maximum throughput?
Question 22
Question 23
Question 24
Process Arrival Time Processing Time A 0 3 B 1 6 C 4 4 D 6 2
Question 25
P1 | P2 |
---|---|
Compute: Use R1; Use R2; Use R3; Use R4; | Compute; Use R1; Use R2; Use R3;. Use R4; |
Question 26
Process | Priority | CPU time required | Arrival time (hh:mm:ss) |
P1 | 10(highest) | 20 sec | 00:00:05 |
P2 | 9 | 10 sec | 00:00:03 |
P3 | 8 (lowest) | 15 sec | 00:00:00 |
We have a choice of preemptive or non-preemptive scheduling. In preemptive scheduling, a late-arriving higher priority process can preempt a currently running process with lower priority. In non-preemptive scheduling, a late-arriving higher priority process must wait for the currently executing process to complete before it can be scheduled on the processor.
What are the turnaround times (time from arrival till completion) of P2 using preemptive and non-preemptive scheduling respectively.
Question 27
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Question 29
Question 30
There are 56 questions to complete.