https://github.com/lastek/operating-systems-scheduling-algorithms
Implementation of FCFS, SJF, and Priority scheduling algos.
https://github.com/lastek/operating-systems-scheduling-algorithms
operating-system scheduling-algorithms
Last synced: about 1 year ago
JSON representation
Implementation of FCFS, SJF, and Priority scheduling algos.
- Host: GitHub
- URL: https://github.com/lastek/operating-systems-scheduling-algorithms
- Owner: Lastek
- License: mit
- Created: 2024-07-10T02:09:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-11T00:44:32.000Z (over 1 year ago)
- Last Synced: 2025-01-18T01:12:43.629Z (about 1 year ago)
- Topics: operating-system, scheduling-algorithms
- Language: C++
- Homepage:
- Size: 465 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
README
======
Builds with gcc tools in WSL 2 Ubuntu Jammy. Makefile included.
Will build with cmake.
Including vs2022 package as well.
To build with debugging:
- #define DEBUG_SCHED in Scheduler.h
- Pass -DDEBUG_SCHED=1 for make or =ON for cmake
This package includes implementations of three scheduling algorithms:
- FCFS: First Come First Serve
- SJF: Shortest Job First
- Priority: Highest priority job first
### Included files:
- Scheduler.cc [Contains the main entry and scheduler algorithms]
- Scheduler.h [header]
- pump.h [ProcessorPump class implementation]
- util.cc [Utilities]
- util.h [Header]
- types.h [common type definitions]
- Makefile [Used for compilation]
- README.txt [This file]
#### Debugging:
- debug.h
- debug.cc
#### Misc files:
- quick.cc [Quicksort implementations. Not in use currently.]
### To compile:
make:
make
cmake:
cmake
### Debugging:
make:
make DEBUG_SCHED=1
cmake:
cmake DEBUG_SCHED=ON
### To run:
./Scheduler file.csv
### Note:
make DEUBG_SCHED=1 requires debug.cc & debug.h which are not included in this package.
csv file must be in the following format:
,,,