Anonymous user menu

There are 4 processses A,B,C,D arrived in to the ready queue

There are 4 processses A,B,C,D arrived in to the ready queue at time 0 in the order A,B,C,D. The burst time are 4,2,1,2 respectively. RR scheduling technique is used with time slice of 1ms. If the context switch takes 2ns then what will be the total time taken(ns) for all the context switches to finish the process execution?

a)12ns b)14ns c)16ns d)10ns

2Comments
Vikash @vikasch
28 Dec 2014 11:15 am

ans. should be (c) 16ns

Anjan @prab_1
1 Dec 2015 08:18 pm

I got the sequence as A B C D A B D A A then according to the link below, no of context switches is 7 but here in above pdf vikash have counted  A to A as context switch thus got a total  of 8.please clarify me??

http://www.techtud.com/#overlay=doubt/what-will-be-number-context-switches