An open API service indexing awesome lists of open source software.

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

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*