Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Introduction After some initial analysis wefound that Round Robin (RR) has better performance compared to other process scheduling algorithms namely First-come, firstserved (FCFS), Shortest

1. Introduction

After some initial analysis wefound that Round Robin (RR) has better performance compared to other process scheduling algorithms namely First-come, firstserved (FCFS), Shortest job next (SJN), and Shortest remaining time (SRT). However, to have a holistic analysis on the best time quantum according to the client specification, a list of jobs used by the client is provided for further analysis.

Your tasks are to:

(a) Implement or code the Round Robin algorithm with C / C++ programing language.

(b) Use the program to read the provided job list.

Job (8) arrive at CPU cycle 337
I/O (98)
I/O (84)
CPU (82)
CPU (96)
I/O (100)
CPU (89)
I/O (81)
CPU (93)
CPU (88)
CPU (88)
CPU (87)
CPU (100)
CPU (85)
I/O (98)
CPU (84)
CPU (93)
I/O (94)
CPU (84)
CPU (93)
I/O (84)
CPU (94)
I/O (99)
I/O (92)
CPU (98)
CPU (86)
I/O (85)
CPU (95)
CPU (90)
CPU (86)
CPU (100)
I/O (93)
I/O (87)
I/O (87)
CPU (85)
I/O (96)
I/O (85)
I/O (88)
CPU (97)
CPU (89)
CPU (88)
CPU (98)
I/O (98)
I/O (81)
I/O (97)
I/O (97)
I/O (81)
I/O (93)
I/O (87)
CPU (83)
CPU (87)
I/O (98)
CPU (89)
CPU (97)
CPU (88)
CPU (90)
CPU (88)
CPU (90)
I/O (83)
CPU (95)
CPU (100)
I/O (91)
I/O (82)
I/O (81)
I/O (89)
I/O (100)
I/O (97)
CPU (95)
CPU (100)
CPU (98)
I/O (96)
I/O (84)
I/O (96)
I/O (97)
CPU (93)
CPU (92)
CPU (85)
I/O (94)
CPU (87)
I/O (88)
CPU (81)
I/O (96)
CPU (94)
I/O (86)
CPU (81)
CPU (90)
CPU (84)
CPU (87)
I/O (96)
I/O (81)
CPU (86)
CPU (87)
CPU (88)
I/O (87)
I/O (84)
CPU (93)
CPU (83)
I/O (91)
I/O (84)
CPU (91)
I/O (81)
I/O (100)
CPU (87)
I/O (89)
I/O (81)
I/O (83)
CPU (94)
CPU (82)
I/O (85)
I/O (93)
I/O (96)
I/O (92)
CPU (99)
I/O (87)
CPU (96)
I/O (86)
CPU (95)
CPU (93)
CPU (94)
I/O (92)
CPU (81)
I/O (81)
I/O (83)

(c) Evaluate the job list with different time quantum: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60], by determining the the following performance metrics:

(i) Turnaround time of the jobs;

(ii) Waiting time of the jobs; and

(iii) Number of interrupts incurred.

(d) Recommend the best time quantum for your job list based on your evaluation in

(c). Use suitable charts to explain and justify your recommendation.

Assumptions

(a) All the arrived jobs are at Ready State and ready to be processed by CPU.

(b) Only ONE (1) CPU available for processing the jobs.

(c) Each context switching incurs ONE CPU CYCLE.

(d) Memory is always sufficient to hold any jobs.

(e) Each job has mixture of CPU and I/O instructions, and the integer between the

brackets indicates CPU or I/O cycle required for each instruction (Please refer to

the job list assigned to your group).

Example:

CPU (20) The integer 20 represents the computational instruction requires 20

CPU cycle to compute.

I/O (40) The integer 40 represents the I/O instruction requires 40 CPU cycle to

complete.

please please answer and explain this in the most detail way as possible. thanks in advance

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

Networking is a two-way street. Discuss this statement.

Answered: 1 week ago