Professional Documents
Culture Documents
Hanfa Khawar CS01
Hanfa Khawar CS01
Hanfa Khawar CS01
Question No 1
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.
You are required to
Draw the ready queue for the above given processes.
Draw the step-wise pictorial diagram of the above given scenario in the
context of multiprogramming. After watch this you will learn.
1. What is Operating System?
2. What is Process?
3. What time Slice?
4. What is multiprogramming?
5. What is Dispatcher
Process Answer is given bellow:
Process In C A D B
Dispatcher
CPU
8ms
6ms
4s 4mS 4mS
Step no => 1 D
B
A C
B D 2 ms 2 ms
A C
Step no 3
Ts 2ms Ts 2ms Ts 2ms Ts 2ms
2 ms 4 ms
B D
Ts 2ms Ts 2ms
Step no 4th 2 ms
Ts 2ms
Fifth