Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 610 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 610 Bytes

Gantt Chart

Applies various scheduling algorithms to processes and produces the corresponding Gantt Chart.

Scheduling Algorithms included

  • FCFS
  • SJF
  • SRTF
  • Non-Pre-Emptive Priority
  • Pre-Emptive Priority
  • Round Robin

Usage

  • just compile and run boi

P.S To change the algorithm used, change the last line of the main method. For example:

To run Round Robin:
gantChart.roundRobin(processes, 5); //5 is the quantum number

To run First Come First Serve:
gantChart.firstComeFirstServe(processes);

Output format

alt text