Skip to content

cmp-2060-sp25/kernel-sim-ohh-s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kernel Scheduling Simulator

A simulation for a mini operating system kernel implementing process scheduling algorithms (RR, HPF, SRTN).

Build

make

Usage

./os-sim -s <scheduling-algorithm> -f <processes-text-file> [-q <quantum>]
  • <scheduling-algorithm>: rr, hpf, or srtn
  • <processes-text-file>: Path to the process list file (e.g., processes.txt)
  • -q <quantum>: (Optional) Quantum for RR scheduling

Example

./os-sim -s srtn -f processes.txt

Files

  • os-sim: Main kernel simulator executable
  • process: Simulated process executable
  • processes.txt: Input file with process definitions

Notes

  • The process generator spawns processes at their arrival times and sends them to the scheduler.
  • The scheduler manages process execution according to the selected algorithm.
  • See scheduler.log and scheduler.perf for logs and statistics after running.

About

cmp-2060-sp25-sem-kernel-sim-os-sim created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors