





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
its about process scheduling in cpu.
Typology: Exercises
1 / 9
This page cannot be seen from the preview
Don't miss anything!






!"
# $
% % $
&'(&) $*
+
,
-
* 3 . 5 4. 0 4 4. 1 4 & 1 + 0 !" 6 0
7
0
P1 (24)
24 27
P2 (3) P3 (4)
P1 waiting time: 0 P2 waiting time: 24 P3 waiting time: 27
What if P1 arrives at time 2
31
9
/$
=$
44 6 5/ = : <
; 3
@
0 3
P4 (3) (^) P1 (6)
9
P3 (7)
16
P4 waiting time: 0 P1 waiting time: 3 P3 waiting time: 9 P2 waiting time: 16
P2 (8)
24
Do it yourself
A
(^0 )
P1 (6) P4 (3)
14
P3 (7)
21
P1 waiting time: 0 P2 waiting time: 6 P3 waiting time: 14 P4 waiting time: 21
P2 (8)
24
Do it yourself
B
# 4
?$
$ (^3) -
0
:
- - -
0 10
P1 (10)
P1 waiting time: 0 P2 waiting time: 8
P2 (2)
2 (p2 arrives) 12
Do it yourself
?$5
.
/
0 . ! " $ 4 .
4
&% $
%
)$ % ) $ &'(&) $* + ,
?$ 1
5 1
?$ 5 1
% ?$ )
8 :D: 1
$
& $;
>
!4 55* 5 $ "
: ! 5"
1
41
4/E 1
:
& 85