Implement a framework for cpu scheduling

Assignment Help Operating System
Reference no: EM13685320

Problem Statement:

You will implement a framework for CPU scheduling with three scheduling algorithms: FIFO, round robin, and shortest job first (SJF). Jobs arrive at the CPU scheduler at arbitrary times. When a job arrives, its computation time is known. Assume that all jobs involve only computation, and perform no Input/Output. Jobs thus need to run on the CPU for a total duration equal to their known computation times. When they complete, they leave the system.

Brief descriptions of three algorithms

FIFO

Jobs are processed on a first-in-first-out basis.

Round-robin time-slicing

Pick head of queue, run a job for a time quantum, preempt it, run the next one and so on. A new job goes at the tail of the queue and so does a preempted one. If a new job arrives at the same time as a time quantum completes, the new job goes at the end of the queue.

Shortest Job First - Preemptive version (Shortest Remaining Time First) If there is more than one job, select the one with the shortest execution time. If a new job has shorter REMAINING time, preempt current job and switch to new one.

Solution Specification:

The input to your program will be a file containing job IDs with their arrival times and required computation times.

Input Format

The input command line format should be as follows (where sched is the name of your executable):

sched [-v] -[Rk|S|F] <filename>

Where the command-line flag:

- R is round robin, k is an integer specifying the time-slice

- S is shortest job first

- F is FIFO

- The -v option indicates a verbose output mode (i.e. more information is displayed)

- <filename> is the name of the input file whose format is described below 

You should submit a write-up as well as your program. Your write-up should include any known bugs, limitations, and assumptions in your program. This wirte-up should be in text-format and titled as ‘README'. It should be submitted along with your code. TA will use the ‘README' file to compile (or install) and run your program. If the TA has trouble with your program then he will contact you to makeup it.

Reference no: EM13685320

Questions Cloud

Graph a market with tax where firms pay the majority of tax : Graph a market with a tax where firms pay the majority of the tax. Graph the long run equilibrium for perfect competition. Using a similar average cost curve, graph the long run equilibrium for monopolistic competition. Compare the results.
Find the force : Find the force
A link between air pollution and autism : Find any information about a link between air pollution and autism and write a paper based on your information. News-press, peer-revised, etc. any sources
What will be the pattern of trade between two country : There are two countries (US, Mexico) producing two goods (Ipads (I), Jeans (J)). Suppose I is relatively capital intensive in production and the Mexico is relatively capital abundant. What will be the pattern of trade between the US and Mexico? Which..
Implement a framework for cpu scheduling : You will implement a framework for CPU scheduling with three scheduling algorithms: FIFO, round robin, and shortest job first (SJF). Jobs arrive at the CPU scheduler at arbitrary times.
Capital intensity of production in the labor intensive good : In the Heckscher-Ohlin model, after opening up to trade, presume a country exports a capital intensive good. What happened to the capital intensity of production in the capital intensive good? What happened to the capital intensity of production in t..
Monopolistically competitive-monopoly and oligopoly : Describe why in competitive markets there can be profit or producer surplus in the short run but not the long run. Include the idea of "economic rent" for exceptionally productive inputs. Then imagine a firm with the same cost structure but in each o..
Choose two brands of shampoo : Choose two brands of shampoo.
Marketing strategy : Marketing Strategy

Reviews

Write a Review

Operating System Questions & Answers

  Designing phase of the project management life cycle

Discuss how does the design phase of the project management life cycle differ in content and importance from the other phases?

  Question about electronic monitoring

Give some discussion about Electronic checking, such as what is used in stores, through employers and by the public. Planning these questions in the response.

  Explain decision variables in relation to linear programming

Explain the following terms in relation to linear programming problems- (1) decision variables (2) objective function

  Questiona furniture manufacturer produces two types of

questiona furniture manufacturer produces two types of desks standard and executive. these desks are then sold at rs

  Computing the access time

Main memory uses a block transfer capability & has 1st word (four bytes) access time of fifty ns and access time for following words as 5 ns.

  Trends in information management

Assume you have been asked to join with many other IT professionals for an hour on the local cable channel, discussing some of the current trends in information management,

  Effectiveness of online security

Six months ago a toy corporation started to sell their items on the internet. Over this time period traffic to the website has raised substantially but few consumers have made online purchases.

  Solving problem by ipv6

Discuss and explain some of the problems NATs develop for IPsec security. Solve this problems through using IPv6?

  Mobile users and enterprise security

The Baypoint Group requires your help with a presentation for Academic Computing Services, a nationwide company that assists colleges and universities with technology issues.

  Question 1a give three technical merits of unixb

question 1a give three technical merits of unix.b differentiate between clustered systems and real-time systems.c

  Mobile computing technology

Discuss similarities and differences of patient vital signs using mobile computing technology to in-patient visits to the doctor's office or hospital.

  Describe a client or server protocol used in everyday life

Suppose a time-sharing operating system allocated time slices of 20 milliseconds and the machine executed an average of 5000 instructions per microsecond. How many instructions could be executed in a single time slice?

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