Skip to content
/ DiscAlgs Public

FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK algorithm.

Notifications You must be signed in to change notification settings

cnydo/DiscAlgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disk-scheduling Algorithms

            con nam mo adidas phat  

                   _oo0oo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  0\  =  /0
                ___/`---'\___
               .' \|     |// '.
              / \|||  :  |||// \
            / _||||| -:- |||||- \
            |   | \\  -  /// |   |
           | \_|  ''\---/''  |_/ |
           \  .-\__  '-'  ___/-. /
         ___'. .'  /--.--\  `. .'___
      ."" '<  `.___\_<|>_/___.' >' "".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `_.   \_ __\ /__ _/   .-` /  /
 =====`-.____`.___ \_____/___.-`___.-'=====
                   `=---='


 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

About

This is a simple program which implements the following Disk-scheduling algorithms: FCFS, SSTF, SCAN, C-SCAN, LOOK, and C-LOOK

image

image

image

image

image

image

Technology

  • NetBeans 8.2

How to use

  1. Clone this repo using Git Bash or Github Desktop, or Download as zip.
  2. Import the project to your JRE or JDK (NetBeans or Eclipse are recommended).
  3. Clean and build, then run the project (If you wanna use command line, then try this after compiling the project:
    java -jar "(file pathname)\DiskSchedulingAlgs\dist\DiskSchedulingAlgs.jar"

Features

  • Calculating seek time with each algorithm.
  • Supporting 3 type of requests input:
    1. From keyboard
    2. From requests.txt. For example:
      Requests sequence:
      176 79 34 60 92 11 41 114
      Total cylinders:
      200
      
    3. Generate a random requests sequence.
  • Save the results in the text file corresponding to each algorithm.

Our team

About

FCFS, SSTF, SCAN, C-SCAN, LOOK and C-LOOK algorithm.

Topics

Resources

Stars

Watchers

Forks

Languages