https://github.com/samyam81/schedulingalgo
Scheduling algorithms manage the execution order of processes in a computer system, ensuring efficient resource utilization and timely completion of tasks.
https://github.com/samyam81/schedulingalgo
beginner-friendly csharp first-in-first-out java operating-system round-robin shortest-job-first
Last synced: about 2 months ago
JSON representation
Scheduling algorithms manage the execution order of processes in a computer system, ensuring efficient resource utilization and timely completion of tasks.
- Host: GitHub
- URL: https://github.com/samyam81/schedulingalgo
- Owner: samyam81
- Created: 2024-04-08T07:43:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T07:27:37.000Z (12 months ago)
- Last Synced: 2025-01-27T09:14:25.965Z (4 months ago)
- Topics: beginner-friendly, csharp, first-in-first-out, java, operating-system, round-robin, shortest-job-first
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SchedulingALGO
This repository contains implementations of various scheduling algorithms in different programming languages. Each algorithm is implemented in separate files.
## FIFO (First-In-First-Out)
### C# Implementation
- `FIFO.cs` contains the C# implementation of the FIFO scheduling algorithm.
- The `Process` class represents a process with its process ID, arrival time, and burst time.
- The `FIFOAlgorithm` class implements the FIFO algorithm using a queue data structure.
- The `Main` method in `FIFO.cs` demonstrates how to use the FIFO algorithm with sample processes.### Java Implementation
- `FIFO.java` contains the Java implementation of the FIFO scheduling algorithm.
- Similar to the C# implementation, it includes the `Process` and `FIFOAlgorithm` classes.
- The `Main` method in `FIFO.java` demonstrates how to use the FIFO algorithm with sample processes.## Round Robin
### Java Implementation
- `RoundRobin.java` contains the Java implementation of the Round Robin scheduling algorithm.
- The `Process` class represents a process with its process ID, arrival time, burst time, and remaining burst time.
- The `RoundRobin` class implements the Round Robin algorithm using a queue data structure and a time quantum.
- The `main` method in `RoundRobin.java` demonstrates how to use the Round Robin algorithm with sample processes.## SJF (Shortest Job First)
### Java Implementation
- `SJFAlgorithm.java` contains the Java implementation of the Shortest Job First (SJF) scheduling algorithm.
- Similar to other implementations, it includes the `Process` class.
- The `SJFAlgorithm` class implements the SJF algorithm using a priority queue to prioritize processes based on burst time.
- The `main` method in `SJFAlgorithm.java` demonstrates how to use the SJF algorithm with sample processes.Enjoy exploring the different scheduling algorithms in the SchedulingALGO repository!