question archive which will take as input

which will take as input

Subject:Computer SciencePrice: Bought3

which will take as input.txt file a number of processes(PID) arrival times, and burst times. Those values are then used to output the average wait time of each under the first come first serve and round robin CPU scheduling algorithms.


Input file example:
% more input.txt
PID        Arrival  Burst
1            0            10
2            1            9
3            2            8
4             3             7


Output:
When a task is scheduled, the simulator will simply print out what task is selected to run at a time. Show the status of related process at each scheduling event, e.g.,: starts running, has finished, is preempted into Queue #, or continues running.
Print statistical information. As soon as all tasks are completed, the program should compute and print

-average waiting time
-average response time
-average turnaround time.

%myCPUScheduler input_file FCFS
Selected Scheduling algorithm: FCFS or RR(round robin)
PID starts runningat TIME
PID has finished at TIME
PID starts runningat TIME
PID has finished at TIME
...
=============================
Average waiting time:  10.00 ms
Average response time: 3.00 ms
Average turnaround time: 13.00 ms

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions