Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Dr . Marwan, an avid supporter of competitive programming, is excited to announce a new challenge for his students. As a big fan of process

Dr. Marwan, an avid supporter of competitive programming, is excited to announce a new challenge for his students. As a big fan of process scheduling algorithms, he has designed a problem that will test the students understanding and implementation skills of the round-robin scheduling algorithm.
In this challenge, you are tasked with simulating the round-robin scheduling algorithm. You will read the details of various processes from a file, execute them according to the Round Robin policy, and then calculate and display important metrics, such as Turnaround, response, and waiting times.
The challenge includes reading the data from the processes from the ready queue (file) and then passing this file to a round-robin scheduler, which will create the Ready Queue and start executing the processes in the queue
In the beginning, you will be prompted for the input file name and then the quantum time and the program will display the expected results as:
Enter the filename: processes.txt
Enter the quantum time period (in milliseconds): 200
Read Processes:
1: Arrival Time =0, Burst Time =30
22: Arrival Time =100, Burst Time =200
p3: Arrival Time =20, Burst Time =500
p4: Arrival Time =50, Burst Time =200
p5: Arrival Time =30, Burst Time =90
Gantt Chart:
Average Response Time: 180.00
Average Waiting Time: 482.00
Average Turnaround Time: 482.00
The Job Queue file will look :Figure 1 Sample Input File
Submission policy:
This is a group work project worth 10 marks.
Each group must not exceed 3 students.
The work will be tested with various files from our end.
A random discussion will take place with your course instructors.
The submission due time is Monday 27th May by 23:59 p.m.
Submission on the edugate as a code file.
image text in transcribed

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

e. Demand increases and supply is constant.

Answered: 1 week ago

Question

=+ b. A change in weather patterns increases the depreciation rate.

Answered: 1 week ago