https://github.com/coderatul/cpu-sheduling
cpu sheduling algorithm implemented in python
https://github.com/coderatul/cpu-sheduling
cpu-scheduling fcfs fcfs-scheduling first-come-first-serve round-robin-scheduling shortest-job-first
Last synced: 4 months ago
JSON representation
cpu sheduling algorithm implemented in python
- Host: GitHub
- URL: https://github.com/coderatul/cpu-sheduling
- Owner: coderatul
- Created: 2024-02-11T12:27:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T06:10:54.000Z (over 1 year ago)
- Last Synced: 2024-10-14T04:08:37.342Z (about 1 year ago)
- Topics: cpu-scheduling, fcfs, fcfs-scheduling, first-come-first-serve, round-robin-scheduling, shortest-job-first
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPU Scheduling Algorithms
---
This repository provides Python implementations of CPU scheduling algorithms, starting with **First Come First Serve (FCFS)**.

## First Come First Serve (FCFS)
- **Overview**: A non-preemptive algorithm executing processes in arrival order.
- **Features**: Handles duplicate arrival times and detects halts effectively.
### Usage
```python
prcs = ["P1", "P2", "P3", "P4", "P5", "P6"]
at = [4, 19, 2, 3, 2, 2]
bt = [1, 2, 7, 1, 2, 2]
s1 = CpuSheduling(prcs, at, bt)
s1.fcfs()
```
### Output
- Displays execution order, completion time, turnaround time, and waiting time in a tabular format.

## Future Development
> Planned implementations include **SJF**, **SRTF**, and **RR** algorithms.
## Contributions
We welcome contributions! Help implement SJF, SRTF, or RR by forking the repo, adding your code, and submitting a pull request. Let’s build this together!
*last Release was on : April 17, 2025*