Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

coderatul/cpu-sheduling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

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

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

AltStyle によって変換されたページ (->オリジナル) /