Giter VIP home page Giter VIP logo

disk-and-cpu-scheduling-algorithms's Introduction

Disk-and-CPU-Scheduling-Algorithms

This repository is a project I did with my groupmates for our course Operating Systems (ICS26012). The system is designed to be a simulation of a calculator for different CPU Scheduling and Disk Scheduling algorithms. For CPU Scheduling, we implemented two preemptive algorithms, namely:

  • Shortest Job First (SJF)
  • Priority (P-Prio) and two non-preemptive algorithms, namely:
  • First Come First Serve (FCFS)
  • Shortest Job First (SJF) For Disk Scheduling, four algorithms were implemented:
  • First Come First Serve (FCFS)
  • Shortest Seek Time First (SSTF)
  • SCAN
  • LOOK

Contribution

  • The algorithms were distrubted evenly among the groupmates and I was responsible for implementing the SCAN and LOOK Disk scheduling algorithms. I was also responsible for compiling and organizing printing the outputs in order to make the project cohesive.

Implementation

The project was implemented using the java programming language and coded through the Netbeans 8.2 IDE.

Program Flow

  • The program first asks the user which type of scheduling algorithm should the user try. If the user chose CPU scheduling, then they are prompted whether they want to choose preemptive or non-preemptive algorithms.

  • After choosing, the users will then be prompted regarding the CPU scheduling algorithm that they will use.

  • If the user chose Disk Scheduling, they will immediately be prompted regarding the Disk scheduling algorithm that they will use.

Sample Run

  • CPU Scheduling - Priority (Preemptive)

  • CPU Scheduling - Shortest Job First (Non-preemptive)

  • Disk Scheduling - Scan (left-first)

  • Disk Scheduling - Shortest Seek Time First

disk-and-cpu-scheduling-algorithms's People

Contributors

crufixs avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jtgo

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.