Skip to content

Commit 84b6caa

Browse files
authored
Create README.md
1 parent 9e557ac commit 84b6caa

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# CPU Scheduling Algorithms in Python
2+
3+
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.
4+
5+
## Table of Contents
6+
7+
- [Algorithms Implemented](#algorithms-implemented)
8+
- [Installation](#installation)
9+
- [Usage](#usage)
10+
11+
## Algorithms Implemented
12+
13+
1. **First-Come, First-Served (FCFS)**
14+
2. **Priority Scheduling**
15+
3. **Shortest Job First (SJF)**
16+
4. **Shortest Remaining Time First (SRTF)**
17+
18+
## Installation
19+
20+
1. Clone this repository:
21+
22+
```bash
23+
git clone https://github.com/divysuthar/Scheduling_algorithm.git
24+
cd Scheduling_algorithm
25+
```
26+
27+
## Usage
28+
29+
You can run each scheduling algorithm independently by executing the corresponding Python script.
30+
31+
```bash
32+
python fcfs.py
33+
python priority_scheduling.py
34+
python sjf.py

0 commit comments

Comments
 (0)