Cpu scheduling algorithms


#1

Consider 3 processes A, B, and C to be scheduled as per SRTF scheduling. The process A is known to be scheduled first and when A has been running for 7 units of time the process C has arrived. The process C has run for 1 unit of time, then the process B has arrived and completed running for 2 units of time. Then what could be the minimum burst time of processes A and C?

a)11, 3
b)12,3
c)11,4
d)12,4


#2

I think it might be D. 12, 4. Since listen B’s time is 2 units and C has stopped and B started so C might be having 3 time unit left so now we know C’s burst time would be 4 similarly find A’s.