Question: Unix only c/c++ working code reading from a file not copied form other website or chegg only FCFS or RR dont need both Process Simulator:
Process Simulator: In this task, you are required to create a process. Write a program to read a file, which has an algorithm name (FCFS or RR), a set of processes with running times (CPU time) and arrival times: -Determine Schedule Calculate Total, Average Waiting Time Calculate Total, Average Turnaround time Calculate Throughput Here is a sample input file. Name: FCFS Q: 10 NumofProc: 5 Process name Arrival Time P1 P2 P3 P4 PS cPU time 0 10 20 30 40 20 29 15 58 input.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
