Question: [20 points] (Scheduling algorithms) The supplied file (processes.txt) has list of processes for a process scheduler. The scheduler implements three algorithms - FCFS, SD, RANKED

 [20 points] (Scheduling algorithms) The supplied file (processes.txt) has list ofprocesses for a process scheduler. The scheduler implements three algorithms - FCFS,

[20 points] (Scheduling algorithms) The supplied file (processes.txt) has list of processes for a process scheduler. The scheduler implements three algorithms - FCFS, SD, RANKED -that work as follows: FCFS creates the scheduling order of the processes based on their arrival time, SD creates the scheduling order based on process duration (shortest to longest), and RANKED creates the order based on highest to lowest ranking (lower value means higher rank, that is rank 1 is higher than rank 2) of processes. B. Write a C-code (use structure/union/enum as appropriate) that asks the user to enter the choice of scheduling algorithm, creates process order based on the chosen algorithm, and displays process-id of top 5 processes from that ordered list

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!