Skip to content

laam-egg/banker

Repository files navigation

OS Algorithms Implementation

HDD Scheduling Algorithms

  1. FCFS
  2. SSTF (see image below)
  3. SCAN
  4. C-SCAN
  5. LOOK
  6. C-LOOK

SSTF Algorithm

Page Replacement Algorithms

  1. FIFO
  2. Optimal Algorithm
  3. LRU
  4. MRU
  5. LFU
  6. MFU
  7. LFU then LRU
  8. Second-chance Algorithm (Clock Algorithm).

Example 1

  • Second-chance (Clock) Algorithm
  • 3 frames
  • Reference string input 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1

Second-chance, 3 frames

Example 2

  • FIFO Algorithm
  • 1-10 frames
  • Reference string input 3 2 1 0 3 2 4 3 2 1 0 4

FIFO, 1 to 10 frames

OS Resource Management Algorithms

Algorithms

  • Safety Algorithm
  • Banker Algorithm (Requesting Algorithm)
  • Deadlock-Detection Algorithm

Preview

Safety Algorithm

Safety 1

Banker Algorithm

Banker 1

Deadlock-Detection Algorithm

Image 1

Deadlock 1

Image 2

Deadlock 2

How to Run

yarn
yarn dev
yarn build
yarn preview

Author

Vũ Tùng Lâm 22028235 UET

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages