Question: Provide C/C++ code in Ubuntu/Linux and output screenshots Develop an application for implementing CPU scheduling Algorithms. Create a menu for user to select which of

Provide C/C++ code in Ubuntu/Linux and output screenshots

Develop an application for implementing CPU scheduling Algorithms. Create a menu for user to select which of the scheduling algorithm he wants to apply. Get input from user. User will enter no. of processes, their burst time, arrival time, priority (in case of priority scheduling) and time quantum ( in RR).

Implement following CPU scheduling Algorithms

  • FCFS
  • SJF(Preemptive)
  • SJF (nonpreemptive
  • Priority Scheduling (Preemptive)
  • Priority Scheduling (nonpreemptive)
  • RoundRobin

Your program should calculate

  • Waiting Time
  • Turnaround Time
  • Response Time

For each process and Average of these for every algorithm.

Note: Use proper menus for user inputs and show output in proper format.

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!