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

  Technological convergence

Technological convergence

  Possibility-using fiber optic cable instead of twisted pair

Discuss the possibility of using fiber optic cable instead of either twisted pair cable or staying with the existing coax wiring structure.

  Describe the difference between classes and objects

Please describe the difference between classes and objects. How are they related? What does it mean to instantiate an object? Also, please describe the difference between composition and aggregation and when it is better to use one over the other?

  Calculate the reliability of a hard disk drive

Calculate the reliability of a hard disk drive with an MTBF of 2,499 hours during the last 40 hours of this month. Assume e = 2.71828 and use the formula: reliability(t) = e -(1/MTBF)(t)

  What will the worst-case runningtime be in asymptotic terms

What will the worst-case runningtime be in asymptotic terms? If the difference is only a constanttime factor, how much slower or faster will the modified program becompared to the original version of binary?

  Create a details element that displays the summary

Write an HTML5 element (or elements) to accomplish each of the following tasks: a. Students were asked to rate the food in the cafeteria on a scale of 1 to 10.

  The wireless technology company

The Wireless Technology Company

  Perform training needs analysis

In order to develop an effective training plan, we need to perform a Training Needs Analysis (TNA). What are the steps of a TNA? What role do users play in the process and what are some examples of elements of a final TNA output document.

  What is the response time for jobs in observed system

We observe a closed system for 30 minutes, during which 1600 tasks are completed, from 12 terminals. Each terminal (source of tasks). What is the response time for jobs in the observed system?

  Computer crime techniques

Computer Crime Techniques

  Create an array of integers 10 elements long

Create an array of integers 10 elements long. ? Loop through this array (using its length value), assigning a random value between 0 and 100 (inclusive) to each element. Remember: random(100) returns a float and will never return 100.0.

  Current standards sufficient to protect privacy

What is the right of privacy, and what is the basis for protecting personal privacy under the law and are current standards sufficient to protect privacy?

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