Provide a make file so we can run on energon

Assignment Help Programming Languages
Reference no: EM131299352

Programming Assignment Lab: IO Scheduling

You are to implement different IO-schedulers in C or C++ and submit the source code, which we will compile and run. Please provide a Make file so we can run on energon (and please at least test there as well).

In this lab you will implement/simulate the scheduling of IO operations. Applications submit their IO requests to the IO subsystem, where they are maintained in an IO-queue. The IO-scheduler then selects a request from the IO-queue and submits it to the disk. On completion another request can be taken from the IO-queue and submitted to the disk. The scheduling policies will allow for some optimization as to reduce disk head movement or overall wait time in the system. The schedulers to be implemented are FIFO (i), SSTF (j), SCAN (s), CSCAN (c), and FSCAN (f) (the letters in bracket define which parameter must be given in the -s program flag).

Note: when we say [C|F|]SCAN we actually mean the LOOK variant algorithm version which does not scan the entire width of the of the disk. This is the common usage in the industry of the term SCAN. Also remember that when switching queues in FSCAN you always scan up first from the current position, then down until queue empty.

Invocation is a follows:

./iosched -s<schedalgo> <inputfile>

The input file is structured as follows: Lines starting with '#' are comment lines and should be ignored.

Any other line describes an IO operation where the 1st integer is the time step at which the IO operation is issued and the 2nd integer is the track that is accesses. Since IO operation latencies are largely dictated by seek delay (i.e. moving the head to the correct track), we ignore rotational and transfer delays for simplicity. Move by one track takes one time unit.

We assume that moving the head by one track will cost one time unit. As a result your simulation can/should be done using integers. The disk can only consume/process one IO request at a time. Everything else must be maintained in an IO queue and managed according to the scheduling policy. The initial direction of the SCAN algorithms is from 0-tracks to higher tracks. The head is initially positioned at track=0 at time=0. Note maxtrack is not an issue here (think why).

You can make the following assumptions:

- at most 1000 io operations will be tested, so it's OK to first read all requests from the file before processing.

You don't have to use discrete event simulation. You can write a loop that increments simulation time by one and check whether any action is to be taken, i.e. whether an I/O completed or whether and I/O arrived and whether the track has to be moved by one (i.e. there is an active I/O ongoing).

Attachment:- Lab Assignment.rar

Reference no: EM131299352

Questions Cloud

Liquidity trap and insensitive investment function : The Keynesian Transmission mechanism will eliminate a recessionary gap if there are not Liquidity Trap or Insensitive Investment function. Explain: a) What it is a liquidity trap
Count the number of coins in the bag and record the value : Count the number of coins in the bag and record the value as P in Table II. (Note: an example of how Table II is supposed to look like has been provided to you at the bottom of the document.
Decide whether you should rely on the data : The database might be complete and accurate, or it might not be. To what extent should you rely on these data? What can you do to decide whether you should rely on the data at this site.
What is the rate of returns at each of the stores : Rates versus counts. Customers returned 36 coats to Sears this holiday season, and only 12 to La Boutique Classique next door. Sears sold 1200 coats this season, while La Boutique sold 200.
Provide a make file so we can run on energon : You are to implement different IO-schedulers in C or C++ and submit the source code, which we will compile and run. Please provide a Make file so we can run on energon (and please at least test there as well)
Create the business plan to make business more profitable : Create the Business Plan to make the business more profitable.- The Business Plan is about "Air conditioning and heating".
Are these ratings biased or unreliable : The most popular restaurant. Each year the Zagat Survey lists the most popular restaurants in Los Angeles. In 2005, A.O.C. was ranked 5th but in 2004 it was ranked 31st. The Cheesecake Factory was ranked 7th in 2005 but was 2nd in 2004. Are these ..
Write a program which uses structure having indicated member : Write a program which uses a structure having the indicated member names to store the following data: The program will keep a list of three test scores for one student.
Describe a measurement process that you think is valid : Measuring physical fitness. You want to measure the "physical fitness" of college students. Give an example of a clearly invalid way to measure fitness. Then briefly describe a measurement process that you think is valid.

Reviews

len1299352

12/3/2016 2:44:44 AM

You are to implement different IO-schedulers in C or C++ and submit the source code, which we will compile and run. Please provide a Makefile so we can run on energon (and please at least test there as well). In this lab you will implement/simulate the scheduling of IO operations. Applications submit their IO requests to the IO subsystem, where they are maintained in an IO-queue. The IO-scheduler then selects a request from the IO-queue and submits it to the disk. On completion another request can be taken from the IO-queue and submitted to the disk. The scheduling policies will allow for some optimization as to reduce disk head movement or overall wait time in the system. The schedulers to be implemented are FIFO (i), SSTF (j), SCAN (s), CSCAN (c), and FSCAN (f) (the letters in bracket define which parameter must be given in the –s program flag).

Write a Review

Programming Languages Questions & Answers

  Ruby program that continuously reads in number

Write down Ruby program that continuously reads in number, x, from screen, and then calculates and displays its: factorial, if x is less than 15.

  Provide proper indentation and programming style

Provide proper documentation as required in the PAs, Provide proper indentation & programming style similar to the examples from the textbook, videos & PAs

  Shell script that will count the number of files in account

Modify the script to get it to back up to "X" number of days and list the files that were modified for each day.

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Create program to produce a summary of amounts due

Create a program that will produce a summary of the amounts due for Pat's Auto Repair Shop. Display a splash screen first, then display the Job Information Form.

  Object-oriented analysis and design

Object-Oriented Analysis and Design,  PART B-object-oriented design involves the steps 13-18:

  Describe create table command

Find the patients who have made an appointment with a doctor who does not treat them.

  Sql queries to display names

Write a SQL statement to display Students' First and Last Name.

  What is a feature of good program design

Variables declared within a module have what scope? In what way do named constants differ from variables? What is a feature of good program design

  Write program to read integers and finds largest of them

Write a program that reads integer, finds the largest of them, and counts its occurrences. Assume thant the input ends with number 0. suppose that you entered 3 5 3 5 5 5 0.

  Create the logic for the application fast-food resturant

Create the logic for the application which permits a user to enter the ordered item continuosly until sentinel value is entered.

  Program accept word from user and pass it to function

Your program should accept the word from user and pass it to function. Function requires to check if word is "freezing". If it is, program must alert user.

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