Skip to content

This repository offers a collection of fundamental CPU scheduling algorithms implemented in Python.

Notifications You must be signed in to change notification settings

divysuthar/Scheduling_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU Scheduling Algorithms in Python

This repository contains implementations of various CPU scheduling algorithms using Python. Each algorithm is implemented as a separate function, and the scheduling behavior is visualized using a Gantt chart generated by Matplotlib.

Table of Contents

Algorithms Implemented

  1. First-Come, First-Served (FCFS)
  2. Priority Scheduling
  3. Shortest Job First (SJF)
  4. Shortest Remaining Time First (SRTF)

Installation

  1. Clone this repository:

    git clone https://github.com/divysuthar/Scheduling_algorithm.git
    cd Scheduling_algorithm

Usage

You can run each scheduling algorithm independently by executing the corresponding Python script.

python fcfs.py
python priority_scheduling.py
python sjf.py