- For the following processes
process | arrival | Run time | priority |
---|---|---|---|
A | 0.0000 | 6 | 2 |
B | 2.0001 | 7 | 1 (high) |
C | 3.0001 | 2 | 3 |
D | 4.0001 | 2 | 4 |
C o m p u t e t u r n a r o u n d t i m e o f e a c h p r o c e s s a n d a v e r a g e t u r n a r o u n d s t i m e u s i n g : ( 1 ) R o u n d r o b i n ( q u a n t u m = 2 ) ( 2 ) P r i o r i t y ( 1 − h i g h p r i o r i t y , n o n − p r e e m p t i v e ) ( 3 ) P r i o r i t y ( 1 − h i g h p r i o r i t y , p r e e m p t i v e ) Compute \ turnaround \ time \ of \ each \ process \\ \ and \ average \ turnarounds \ time \ using:\\ (1)Round robin (quantum=2)\\ (2) Priority (1-high priority, non-preemptive)\\ (3)Priority (1-high priority, preemptive) Compute turnaround time of each process and average turnarounds time using:(1)Roundrobin(quantum=2)(2)Priority(1−highpriority,non−preemptive)(3)Priority(1−highpriority,preemptive)
- (1)第一问
- (2)第二问
- (3)第3问