Skip to content

Latest commit

 

History

History
52 lines (43 loc) · 2.07 KB

README.md

File metadata and controls

52 lines (43 loc) · 2.07 KB

Scheduling Simulator

This project simulates various real time algorithms and benchmarks their performance in different scenarios.

Implemented algorithms:

  • First Come, First Served (FCFS)
  • Shortest Job First (SJF)
  • Preemptive Shortest Job First (PSJF)
  • Priority based
  • Rate monotonic (RM)
  • Earliest Deadline First (EDF)
  • Round Robin (RR)

Metrics

In order to compare scheduling algorithms we will evaluate them based on the following metrics:

  • Turnaround time (T_completion - T_arrival)
  • Waiting time (T_turnaround - T_burst)
  • Response time (T_first_on_cpu - T_arrival)

Results

Workload 1 Usage.jpg Workload 1 Turnaround.jpg Workload 1 Waiting.jpg Workload 1 Responding.jpg Workload 2 Usage.jpg Workload 2 Turnaround.jpg Workload 2 Waiting.jpg Workload 2 Responding.jpg Workload 3 Usage.jpg Workload 3 Turnaround.jpg Workload 3 Waiting.jpg Workload 3 Responding.jpg Workload 4 Usage.jpg Workload 4 Turnaround.jpg Workload 4 Waiting.jpg Workload 4 Responding.jpg Workload 5 Usage.jpg Workload 5 Turnaround.jpg Workload 5 Waiting.jpg Workload 5 Responding.jpg

References

  • https://pages.cs.wisc.edu/~remzi/OSTEP/cpu-sched.pdf
  • Operating System Concepts, 10th Edition by Abraham Silberschatz, Peter B. Galvin, Greg Gagne
  • Liu, C. L.; Layland, J. (1973), "Scheduling algorithms for multiprogramming in a hard real-time environment", Journal of the ACM, 20 (1), pp. 46–61