Assignment 2 Q1. Draw The Ready Queue For The Above Given Processes

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Assignment 2

Q1. Draw the ready queue for the above given processes.

CPU
CADB

Ready Queue with processes line up.

Q2. Draw the step-wise pictorial diagram of the above given scenario in the
context of multiprogramming.

Iteration 1 (because of low space on page)

Interrupt Interrupt Interrupt Interrupt

Process C

Process A

Process D

Process B

Time Slice= 2ms Time Slice= 2ms Time Slice= 2ms Time Slice= 2ms

Iteration 2
Interrupt Interrupt Interrupt Interrupt

Process C

Process A

Process D

Process B

Time Slice= 2ms Time Slice= 2ms Time Slice= 2ms Time Slice= 2ms

Iteration 3 Iteration 4

Interrupt Interrupt Interrupt

All processes
finished.
Process D Process D
Time = 22ms

Process B

Time Slice= 2ms Time Slice= 2ms Time Slice= 2ms

You might also like