Question: Write a program to read a file which has an algorithm name (FCFS or RR), a set of processes with running times and arrival times:

Write a program to read a file which has an algorithm name (FCFS or RR), a set of processes with running times and arrival times: Please in C++ and can be used/compiled/ran in Ubuntu, if that makes a difference.

Determine Schedule

Calculate Total, Average Waiting Time

Calculate Total, Average Turnaround time

Calculate Throughput

Here is a sample input file. The file can have different number of processes, the example shows only 5.

Name: FCFS

Q: 10

NumofProc: 5

Proc_name Proc_time Arrival_time

P1 20 0

P2 29 3

P3 7 3

P4 15 10

P5 58 15

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!