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 of](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f548589e47b_87266f5485824e61.jpg)

[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
Get step-by-step solutions from verified subject matter experts
