You are on page 1of 3

CS101 - 

Introduction to Computing

Part # 1: Draw the ready queue

Solution

C A D B

Schedular

Dispatcher

CPU
CS101 - Introduction to Computing

Part # 2

Solution

First

B (6ms) D (8ms) A (4ms) C (4ms)

Process Switch Process Switch Process Switch

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

Second
B (4ms) D (6ms) A (2ms) C (2ms)

Process Switch Process Switch Process Switch


CS101 - Introduction to Computing

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

Third

B (2ms) D (4ms)
Process Switch

Time Slice 2ms Time Slice 2ms

Fourth

D (2ms)

Time Slice 2ms

Total Executing Time = 22ms

You might also like