Short-term scheduler and observe its properties

Assignment Help Basic Computer Science
Reference no: EM13936168

In this project you will write a short-term scheduler and observe its properties. It will work as follows:
1. The scheduler will run in a single process, with simulated jobs.
2. You will implement a scheduler of SRT.
3. SRT will use burst time.
4. The program will take three arguments, a random seed, the name of the algorithm to use, and the length of time to run (in milliseconds).
5. You will simulate the clock interrupt with an alarm signal handler and setitimer(). See the example in the code (see below).
6. All I/O requests will be handled in 40 milliseconds. That is, when a job is blocked and removed from the ready queue, it can be added back at the next opportunity if 40 milliseconds have expired. You do not need to schedule a timer to simulate the I/O interrupt, just handle it when you do the clock interrupt. This way, all events happen in the alarm handler and you can deal with them in one place.
7. When a job completes, you will print out the following information:
a) Arrival time
b) Completion time
c) Service time
d) Turnaround time
e) Normalized turnaround time
Source code is in the Blackboard project folder. job.c generates new jobs for you, and sim.c shows main

Reference no: EM13936168

Questions Cloud

Example of acceptable redisclosures of health information : Describe one safeguard that should be in place to protect the confidentiality of health information when a health care organization uses a home-based medical transcriptionist and one safeguard that should be in place to protect the security of tha..
What is your opinion about legalizing marijuana in canada : Plot the demand schedule and draw the demand curve for the data given for Marijuana in the case above. On the basis of the analysis of the case above, what is your opinion about legalizing marijuana in Canada?
Creating a recommendation based on this scenario : This week you have read research on the theories of group behavior and dynamics, aggression, social influence, group think, group polarization, and de-individuation. Now you will have a chance to showcase what you have learned by creating a recomm..
How might you try to use futures contracts : How might you try to use futures contracts on euros to capitalize on this tendency? How could you determine whether such a strategy would have been profitable in previous periods?
Short-term scheduler and observe its properties : All I/O requests will be handled in 40 milliseconds. That is, when a job is blocked and removed from the ready queue, it can be added back at the next opportunity if 40 milliseconds have expired. You do not need to schedule a timer to simulate the..
Conducting a marketing analysis of a product line : A student will pick a product or product line and conduct a marketing analysis for it. The size of the company is not a factor.
What happened to the futures price over the november : What do you think happened to the futures price over the month of November? Why? If you had known that this would occur, would you have purchased or sold a December futures contract in pounds on 1 November? Explain.
The gain or loss for the stock : Write a program to process stock data. The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (XXX.XX), shares held, and current price. Sue the internet or your local paper to gather..
How did managers manage projects before the invention : How did managers manage projects before the invention and application of computers and software? Think of all the great construction projects and inventions that were made without computer scheduling software from the pyramids to ships, castles, and ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write analogous steps in dimensioning computer network

Write four steps which you think a transportation engineer takes when dimensioning such highway. What are the analogous steps in dimensioning computer network?

  Find the fraction of the conversion

Hint: use the logical operators to combine the 3 pins into one number, then divide that number by 8 (23) to find the fraction of the conversion and multiply that by 5V which would be the Arduino operating voltage.

  Ways in which time-dependent signals can be classified

•Discuss some ways in which time-dependent signals can be classified. •Discuss what is meant by "basic signal representation" and the advantage of this type of representation.

  Resolve this problem within wireless technology

You can resolve this issue by wiring but you do not want to do that. What can you do to resolve this problem within wireless technology?

  Determine subgame-perfect equilibrium

Targeting again one of the surviving gangsters. Survivors split money equally. Determine subgame-perfect equilibrium.

  What is server side and client side scripting

Describe and explain 5 underlying concepts that drive interaction design. Please include appropriate details and examples with applicable references in APA style.

  Derive the players best-response functions

Derive the players' best-response functions

  Format the percentage column to percent with no decimal

Format the Percentage column to Percent with no decimal places

  Develop a data flow diagram

Develop a Data Flow Diagram (DFD) with a minimum of 3 data stores and a minimum of 10 inputs/outputs total for an airline tracking its customers.

  Which is the sort key

Revise the function selectionSort so that it sorts an array of C++ structures according to one int data member, which is the sort key. Repeat this exercise for an array of instances of a class.

  Compute the global boolean or of all input values on ring

Consider an anonymous ring of size n. Each node v stores an input boolean value i(v). When the algorithm terminates, then every node is to store the output in its private variable. Every node knows n, in that n can be a part of code.

  Develop a scanner object in main method

Assume that inside main method below you make decision to develop a Scanner object, and then read in int and then double on one line, where two values are separated by space.

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