0 votes 0 votes Magma asked Aug 15, 2018 Magma 305 views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments Magma commented Aug 15, 2018 reply Follow Share tell me one thing Shaik Masthan .. if T=6 and Q=2 and S=1 according to formula there is S*Q/T = 3 context switching is occurs .. how 3 context context switching is occurs ....expain me with example....seriously I have doubt in this.. thank you 0 votes 0 votes Shaik Masthan commented Aug 16, 2018 reply Follow Share @Magma, it is not S*Q/T context switches... it is $⌈ \frac{T}{Q}⌉$ context switches required.. WHY? just assume P1, T=8 and Q=3 then $⌈ \frac{8}{3}⌉$ = 3 context switches required due to at first time P1 runs and it's burst time down to 8-3 =5 ( Context switch required due to TQ expires ) at second time P1 runs and it's burst time down to 5-3 =2 ( Context switch required due to TQ expires ) at third time P1 runs and it's burst time down to 2-2 =0 ( note that full TQ doesn't use by P1, Context switch required due to P1 completes ) How to Know the Burst time which used by the P1 ===> T = $⌊ \frac{T}{Q}⌋$ * Q + ( T % Q ) What is the Total overhead Time = no.of context switches * Over Head Time per Context Switch What is efficiency = $ \frac{Burst\; Time}{Total\;time}$ = $ \frac{T}{T + over\;Head\;Time}$ = $ \frac{T}{T + (⌈ \frac{T}{Q}⌉ *\; S)}$ 1 votes 1 votes Magma commented Aug 16, 2018 reply Follow Share thanks Shaik Masthan 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes It can be related with efficiency of different sliding window protocol in a computer network like useful time divided by total time. since CPU is utilized for Q time slice and total time is (Q+S). so efficiency = Q/(Q + S). rajks007 answered Aug 15, 2018 rajks007 comment Share Follow See all 0 reply Please log in or register to add a comment.