Skip to content

This repo has all the codes that are used in different CPU scheduling methods

Notifications You must be signed in to change notification settings

arshchatrath/Cpu-Scheduling

Repository files navigation

Cpu-Scheduling

this repo contains the implementation of cpu scheduling algorithms in cpp.

Algorithms Implemented

  1. First Come First Serve (FCFS)
  2. Shortest Job First (SJF)
  3. Priority Scheduling
  4. Round Robin (RR)

How to Run

  1. Clone the repository using `git clone https://github.com/arshchatrath/cpu-scheduling
  2. Navigate to the repository using cd cpu-scheduling
  3. Compile the code using g++ -o cpu-scheduling main.cpp
  4. Run the code using ./cpu-scheduling

Example Use Cases

  1. FCFS: `./cpu-scheduling -a FCFS -p 10 -b
  2. SJF: `./cpu-scheduling -a SJF -p 10 -b
  3. Priority Scheduling: `./cpu-scheduling -a Priority -p 10 -b
  4. Round Robin: `./cpu-scheduling -a RR -p 10 -b

About

This repo has all the codes that are used in different CPU scheduling methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages