Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’½ Disk Scheduling Simulator

A Python-based Operating System project that simulates a dynamic disk I/O environment by implementing and comparing four disk scheduling algorithms: FCFS, SSTF, SCAN, and C-SCAN. The simulator evaluates each algorithm under different workloads based on disk head movement, average seek time, and response efficiency.


🎯 Project Objective

To simulate a dynamic disk I/O environment where multiple read/write requests are generated and implement four disk scheduling algorithms FCFS, SSTF, SCAN, and C-SCAN to compare their performance. The project analyzes disk head movement, average seek time, and response efficiency under varying workloads, providing insights into the effectiveness and trade-offs of different disk scheduling strategies.


πŸ“Œ Algorithms Implemented

  • FCFS (First Come First Serve)
  • SSTF (Shortest Seek Time First)
  • SCAN
  • C-SCAN

✨ Features

  • Supports manual and random disk request generation
  • Configurable disk size and initial head position
  • Simulates multiple disk scheduling algorithms
  • Calculates total head movement
  • Computes average seek time
  • Measures response efficiency
  • Allows testing with different workloads for performance comparison

πŸ’» Technologies Used

  • Python 3
  • Random Module
  • Visual Studio Code

▢️ How to Run

  1. Clone this repository.
  2. Open the project in Visual Studio Code or any Python IDE.
  3. Run the Python file:
python disk_scheduling.py
  1. Enter:

    • Disk size
    • Number of requests
    • Initial head position
    • Manual or random request generation
  2. View and compare the performance of all scheduling algorithms.


πŸ“Š Performance Parameters

The simulator evaluates each algorithm using:

  • Total Head Movement
  • Average Seek Time
  • Response Efficiency

πŸŽ“ Learning Outcomes

  • Understand the working of disk scheduling algorithms.
  • Compare the performance of FCFS, SSTF, SCAN, and C-SCAN.
  • Analyze the impact of different workloads on disk performance.
  • Study the trade-offs between fairness, efficiency, and seek time in disk scheduling.

⭐ Developed as an Operating System Mini Project to demonstrate and compare disk scheduling techniques in a simulated disk I/O environment.

About

Python-based Operating System mini project for simulating and comparing FCFS, SSTF, SCAN, and C-SCAN disk scheduling algorithms.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages