Skip to content

A software program that simulates some CPU scheduling algorithms.

Notifications You must be signed in to change notification settings

nadaamohhamed/CPU-Schedulers-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU Schedulers Simulator

Description

This repository contains Java implementation of a program that simulates the following CPU scheduling algorithms:

Non-preemptive:

  • SJF (Shortest Job First)
  • Priority Scheduling

Preemptive:

  • SRTF (Shortest Remaining Time First)
  • AG Scheduling (A newly proposed algorithm in which a new factor is suggested to attach with each submitted process called AG-Factor)

Features

The user can choose the scheduling algorithm he wants to simulate and the number of processes, processes data to be scheduled or our simulator will generate random processes with random data. For each simulation our program will output the following:

  • Processes execution order (CPU Scheduling Graph)
  • Waiting Time for each process
  • Turnaround Time for each process
  • Average Waiting Time
  • Average Turnaround Time
  • History update of quantum time for each process (AG Scheduling)
  • Processes Information (Name, PID, Color...etc.)

Preview

  • SJF Scheduling simulation output (Non-preemptive)

Alt text

  • Priority Scheduling simulation output (Non-preemptive)

Alt text

  • SRTF Scheduling simulation output (Preemptive)

Alt text

  • AG Scheduling simulation output (Preemptive)

Alt text

About

A software program that simulates some CPU scheduling algorithms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages