Skip to content

This repository contains C / C++ programs for simulating basic operating system algorithms.

Notifications You must be signed in to change notification settings

piyushchugeja/operating-system-codes

Repository files navigation

Operating system concepts

All engineering students have to go through this phase where they need to code OS algorithms for their term work. This repository contains codes for a certain number of algorithms.

  • CPU scheduling algorithms

    • Shortest job first (non preemptive)
    • Round robin (preemptive)
    • Priority (non preemptive)
  • Disk scheduling algorithms

    • Shortest seek time first
    • First come first serve
  • Memory management algorithms

    • First fit
    • Best fit
    • Worst fit
  • Page Replacement algorithms

    • FIFO
    • LRU
    • Optimal
  • Disk Scheduling algorithms

    • FCFS
    • SCAN
    • CSCAN
  • Deadlock avoidance: safety algorithm (also known as Bankers algorithm)

  • Memory management algorithms

    • First fit
    • Best fit
    • Worst fit
  • Producer consumer problem using semaphores

About

This repository contains C / C++ programs for simulating basic operating system algorithms.

Topics

Resources

Stars

Watchers

Forks