



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Operating System Assignment-III Chapter three
Preemptive:- The strategy of allowing processes that are logically run able to be temporarily suspended and be moved to the ready state. Events that may result pre-emption are arrival of new processes, occurrence of an interrupt that moves blocked process to ready state and clock interrupt.
Average response time= (3+23+3+17+0)/5= 9.2ms p5=20-10=10ms p4=45-7=38ms p3=13-5=8ms p2=30-3=27ms p1=8-0=8ms ATAT =(10+38+8+27+8)/5= 18.2ms b. Using round robin scheduling algorithm when quantum =5ms. Algorithm round robin Average response time 18.2 ms Average turnaround times 27.2 ms Gant chart P1 p2 p3 p4 p5 p1 p2 p4 p5 p 0 5 10 15 20 25 28 84 38 40 45 Computation p5=20+(38-25)-10=23ms p4=15+(33-20)+(40-38)-7=23ms p3=10-5=5ms p2=5+(28-10)-3=20ms p1=0+(25-5)-0=20ms average response time=(23+23+5+20+20)/5= 18.2ms p5=40-10=30ms p4=45-7=38ms p3=15-5=10ms p2=33-3=30ms p1=28-0=28ms ATAT=(30+38+10+30+28)/5= 27.2ms