0% found this document useful (1 vote)
808 views3 pages

WS 2.4

The document contains 14 questions about scheduling algorithms including shortest job first, shortest remaining time next, and round robin. Each question provides CPU cycle requirements for jobs A-D and asks for metrics like average waiting time, turnaround time of a specific job, and average turnaround time.

Uploaded by

Huy Vo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
808 views3 pages

WS 2.4

The document contains 14 questions about scheduling algorithms including shortest job first, shortest remaining time next, and round robin. Each question provides CPU cycle requirements for jobs A-D and asks for metrics like average waiting time, turnaround time of a specific job, and average turnaround time.

Uploaded by

Huy Vo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Assume that jobs A-D arrive in the ready queue in quick succession and have the CPU cycle
requirements listed below. Using the Shortest Remaining Time Next algorithm

a) The average waiting time is ____

b) The Turnaround time of job D is

c) The Waiting time of job A is ____.

2. A ssume that four jobs A-D require the CPU cycles listed below. Using the Shortest Job First
algorithm, the ____ job is run first.

3) A ssume that four jobs A-D require the CPU cycles listed below. Using the Round-Robin algorithm
with time slide equaling 4, the average of turnaround time of one process is ______ .

4) Assume that four jobs A-D require the CPU cycles listed below. Using the Shortest Job First algorithm,
the average waiting time is ____. Job

5) A ssume that four jobs A-D require the CPU cycles listed below. Using the Round-Robin algorithm with
time slide equaling 4, the waiting time of all process is ______ .

6) Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling with
time slice equaling 4, the turnaround time for job D is ____.
Arrival time 0 1 2 3

Job A B C D

CPU cycle 8 4 9 5

7) Assume jobs A-D arrive in quick succession in the READY queue. Using shortest job first scheduling,
the average turnaround time for each process is ____.

Arrival time 0 1 2 3

Job A B C D

CPU cycle 8 4 9 5

8) Assume jobs A-D arrive in quick succession in the READY queue. Using shortest remaining time next
scheduling, the average waiting time for each process is ____.

Arrival time 0 1 2 3

Job A B C D

CPU cycle 8 4 9 5

9) A ssume that four jobs A-D require the CPU cycles listed below. Using the Shortest Job First algorithm,
the ____ job is run first.

Job A B C D

CPU cycle 5 2 6 4

10) Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling with
time slice equaling 4, the turnaround time for job C is ____________

Arrival time 0 1 2 3

Job A B C D

CPU cycle 4 5 5 4

11) Assume jobs A-D arrive in quick succession in the READY queue. Using shortest job first scheduling,
the average turnaround time for each process is ___________ .

Arrival time 0 1 2 3

Job A B C D

CPU cycle 4 5 5 4

12) Assume jobs A-D arrive in quick succession in the READY queue. Using shortest remaining time next
scheduling, the average waiting time for each process is __________.

Arrival time 0 1 2 3

Job A B C D

CPU cycle 4 5 5 4

13) Assume jobs A-D arrive in quick succession in the READY queue. Using round robin scheduling
(quantum=4), the average turnaround time for each job is ________ .

Arrival time 0 1 2 3

Job A B C D

CPU cycle 8 4 9 5

14) Five batch jobs A through E, arrive at a computer center at almost the same time. They have
estimated running times of 8, 6, 2, 10, and 4 minutes. Determine the mean process average turnaround
time for SJF (Shortest job first) scheduling. Ignore process switching overhead.

You might also like