Question
I need to read in from a file and save values to variables based on the instructions below, but I'm not sure how to go
I need to read in from a file and save values to variables based on the instructions below, but I'm not sure how to go about it. Any help? Input (Process Information): The process information will be read from an input file. The format is pid arrival_time burst_time . All of fields are integer type where pid is a unique numeric process ID, arrival_time is the time when the task arrives in the unit of milliseconds, and burst_time the is the CPU time requested by a task, in the unit of milliseconds The time unit for arrival_time, burst_time is millisecond.
Command-line Usage Examples:
myCPUScheduler input_file [FCFS|RR|MLFQ]
Input file example:
% more input.txt
PID Arrival Burst
1 0 10
2 1 9
3 2 8
4 3 7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started