Professional Documents
Culture Documents
CS-101 Assignemnt #2, MC210202853
CS-101 Assignemnt #2, MC210202853
Assignment # 02
Question
There are 4 processes A, B, C, and D in the ready queue for execution.
Process A 4ms
Process B 6ms
Process C 4ms
Process D 8ms
The processes enter in the ready queue in the sequence B, D, A, and C and are picked by the dispatcher in the
same order. Value of Time Slice is 2ms. The dispatcher picks a process from Ready Queue and sends it to the
processor for execution.
Task: 01
Draw the ready queue for the above given processes.
Solution
C A D B Dispatcher
CPU
Task: 02
Draw the step-wise pictorial diagram of the above given scenario in the context of
multiprogramming.
Solution
4MS
4MS 8MS 6MS
C A D B
C A D B
C A D B
C A D B
C A D B
End