Skip to content

BattleforAzeroth/DiskManagement

Repository files navigation

English | 简体中文

DiskManagement

Purpose

  1. Learn more about disk scheduling and clarify the principles of disk scheduling.

  2. Gain a deeper understanding of the main tasks of disk scheduling.

  3. Master the main algorithm of disk scheduling through programming.

Content

  1. Schedules a set of disk accesses given below:
requests A B C D E F G H I J K L M N
requests for cylinders 30 50 100 180 20 90 150 70 80 10 160 120 40 110
  1. It is required to use First Come First Serve (FCFS), Shortest Seek Time First (SSTF) and elevator algorithm (SCAN) for scheduling.

  2. It is required to give the order of disk access and calculate the average number of moving lanes in each algorithm.

  3. Assuming that the current read/write head is at number 90, the elevator scheduling algorithm moves in the direction of increasing track number.

Environment

Based on Qt(C++) for Linux.

UI

image

Data

Read in data via data.txt file.

The first line: the current position and the direction of the magnetic head;

Lines 2 to n: Request service name, track number accessed.

About

磁盘管理(操作系统课程设计)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published