Giter VIP home page Giter VIP logo

disk-scheduling-algorithms's Introduction

Analyzing Disk Scheduling Algorithms

Project Overview

This repo contains a comprehensive project that focuses on comparing the efficiency and fairness of disk scheduling algorithms: FIFO, SSTF, Scan, and C-Scan. It involves generating disk track requests, implementing the algorithms, and analyzing their performance in terms of track traversal and request delay fairness.

Features

  • Random generation of disk track requests (0 to 99).
  • Implementation of FIFO, SSTF, Scan, and C-Scan algorithms.
  • Analysis of tracks traversed by the read/write arm.
  • Evaluation of fairness in request processing order.
  • Visualization of request delays and analysis via histograms.
  • Calculation of longest and average delays for tracks.

Getting Started

Prerequisites

  • Programming environment for C

Installation

  • Clone the repository to your local machine.

Usage

  1. Navigate to the project directory in your command line interface.
  2. Compile the program using make in the shell.
  3. Execute with ./main [number_of_requests], where [number_of_requests] is an integer in the range [0:99].

Sample Output

The input.txt file in the directory contains the generated sequence of requests, with a new one being generated every time the program is compiled. The outputs for different request numbers are saved in output.csv and include the total tracks traversed and delays experienced by the requests.

Analysis and Reports

Further analysis of the different algorithms, along with a detailed report, can be found in analysis.md in the repository.

Collaboration Statement

Resources used:

  • SSTF and C-Scan algorithm understanding: Coding Ninjas Library
  • Refreshing Merge Sort: Programiz
  • General C syntax questions: OpenAI Chat
  • Overview of disk scheduling content & project idea gathered from the ZyBooks' Operating Systems book written by Lubomir Bic, a professor of Computer Science at the University of California, Irvine.
    • ZyBook ISBN: 979-8-203-07220-7

Contributing

This project was developed as an extension of a class assignment, and while it is primarily for educational purposes, contributions or suggestions for improvements are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

Contact

Matheus K. Westphalen - [email protected]

Project Link: https://github.com/mwestphalen/disk-scheduling-algorithms

disk-scheduling-algorithms's People

Contributors

mwestphalen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.