exaple: /*i have to input the process no.*/
enter a no. of process:(5)
p1:10-4=6-4=2
p2:12-4=8-4=4
p3:5-4=1
p4:8-4=4-4=0
p5:12-4=8-4=4-4=0
/*have to input time slice*/
time slice: (4)
/*create a box*/
p1 p2 p3 p4 p5
(0) (4) (8) (12) (16) (20)

p1 p2 p3 p4 p5
(20) (24) (28) (29) (33) (37)

p1 p2 p5
(37) (39) (43) (47)


p1: 0+(20-4)+(37-24)=29
p2: 4+(24-8)+(39-28)=31
p3: 8+(29-16) =24
p4: 12+(29-16) =25
p5: 16+13+(43-37) =35
sum=144/5 divided by no. of process
pls send it to my e-mail at snipped