Question: You are tasked to implement a PROCESS SCHEDULER SIMULATOR. The objective is to process COVID files from different cities as they arrive, one COVID file

You are tasked to implement a PROCESS SCHEDULER SIMULATOR. The objective is to process
COVID files from different cities as they arrive, one COVID file per city. The files are comma
delimited, each record (line) represents a COVID patients detail in the following order: row
number, the patients full name, age, country, city, and status of the patient. Using the table below,
attempt the following questions. Consider the following: 1 record is equal to 1 CPU cycle.
File Name Arrival Time Record Count
New York 0150
London 20100
Lagos 25120
Johannesburg 3088
Windhoek 3515
Shanghai 50164
Delhi 55158
a. Using the java programming language implement a non-preemptive or preemptive
scheduling algorithm to process the COVID files. Per each file compute the following: [40]
i. Average age.
ii. Minimum age
iii. Maximum age
iv. Patients count per patient status.
Note: a successful implementation of a preemptive algorithm will earn you an extra
10% for the assignment.
b. Your java code should compute and display both the turnaround time per each file and
the average turnaround time for all files using the figures provided.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!