Disk scheduling algorithm

Assignment Help Operating System
Reference no: EM131579

Simulation of Elevator and Shortest Seek Time First (SSTF) Disk Scheduling Algorithm

Requirements:

_ Must be implemented in C (not C++).

Description:

The project should implement two basic disk scheduling algorithms.

1. Shortest seek time algorithm

2. Elevator algorithm

Overview

A hard disk drive contains a collection of plates called platters. However for the sake of simplicity, we consider a single platter for the project. Each surface of a platter is divided into circular tracks. Each track is further divided into sectors. Reading and writing on the disk is done on sector by sector basis. A group of tracks that are aligned on top of each other forms a cylinder. There is a head connected to arm of each surface which handles all I/O operations. During an I/O operation, the disk head is moved over the destination track. This time is called seek time. Then the disk is rotated further to position the destination sector under the head. This time is called rotational latency. Then the I/O operation is performed.

320_Disk Scheduling Algorithm.png

Shortest Seek Time First Algorithm

After a request is served, the next request to be served is the one which is in the track closest to the current disk head irrespective of the direction in which disk head was moving. It might be easier to implement, but it can lead to starvation if requests are continuously made close to the current disk head. Also slow down in speed might occur if the direction has to be changed frequently.

Reference no: EM131579

Questions Cloud

Give both a high-level algorithm and an implementation : Give both a high-level algorithm and an implementation (\bubble diagram") of a Turing machine for the language
Analytical procedures for the cash cycle : Analytical procedures for the cash cycle
Prepare a line graph : Prepare a line graph showing the budgeted total revenues and total expenditures
Assess risks and opportunities in terms of economic : Assess risks and opportunities in terms of economic. A analysis of the case study "AccuForm: Ethical leadership and its challenges in the era of globalization"
Disk scheduling algorithm : Simulation of Elevator and Shortest Seek Time First
Operating system and cpu scheduling : Operating System and CPU Scheduling
Identify a list of matters for consideration : The approach the controller recommended is to compare SUPERVALU's revenue recognition accounting policies to three similar companies, one reporting under US GAAP ( Safeway ) and two reporting under IFRS ( Ahold and Loblaw Companies ).
Prepare a swot analysis : Identify any organization with which you are familiar and provide a SWOT analysis.
Library management system : Prepare a module which can exhibit the Library Management System

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd