Multi-level feedback queue simulation

Assignment Help Programming Languages
Reference no: EM132747964

Computer Lab: Multi-Level Feedback Queue simulation

In a time-sharing computer system many users share the computer simultaneously. such a system typically has a single CPU (the processor) and one main memory. Several user programs are placed in main storage at once (usually in a waiting queue(s)) and the processor is switched rapidly between the jobs according to some job scheduling policy.
Jobs (processes) are usually given a limited amount of CPU time called a time slice or quantum. If a process does not complete before its CPU time expires, the CPU is preempted and given to the next waiting process. Eventually each process will acquire the CPU for a long enough period of time sufficient complete its required job.

In this lab you will write a Java program that will simulate an operating system's job scheduling policy to determine which process will be assigned the CPU when it becomes available. We will utilize a system of queues to simulate a sophisticated job scheduling mechanism, the multi-level feedback queue (MFQ).

A new process enters the queuing network at the rear of the top queue. It moves through that queue FIFO until it moves to the front of the queue and gets the CPU. If the job completes or relinquishes the CPU to wait for I/O completion or completion of some other event, the job leaves the queuing network. If the quantum expires before the process voluntarily relinquishes the CPU, the process is removed from the CPU and placed at the rear of the next lower-level queue (preemption). The process is next serviced when it reaches the front of that queue if the first queue is empty. As long as the process continues using the full quantum provided at each level, it continues to move to the rear of the next lower queue. Usually there is some bottom-level queue through that the process
circulates round robin until it completes.

In the multi-level feedback scheme, the quantum given to processes as they move to each lower level queue becomes larger. Thus, the longer a process has been in the queuing network, the larger quantum it is assigned each time it gets the CPU. But it may not get the CPU very often because processes in the higher queue are given higher priority. A process in a given queue cannot run unless all higher-level queues are empty. A process can also be preempted by a new Process entering the queuing system.

Attachment:- Multi-Level Feedback Queue simulation.rar

Reference no: EM132747964

Questions Cloud

Highlights on the quality control of a mobile application : Can you give highlights on the Quality Control of a Mobile Application that includes the Website Maintenance and bugs and fixes.
Should diamond boot factory accept or reject special offer : Diamond Boot Factory normally sells its specialty boots for $25 a pair. An offer to buy 75 boots for $20 per pair was made by an organization hosting a national
What suggestinos do you have for her : Therefore, an increase in advertising of $1200 results in $3000 more gross profit. Given this information, Alcorn's first thought was to borrow $5000 from.
Why is drawings is not an expense : Why is drawings is not an expense. Why does accounting concepts and assumptions exist? Why is accrual based profit better than a cash based profit calculation?
Multi-level feedback queue simulation : Multi-Level Feedback Queue simulation - write a Java program that will simulate an operating system's job scheduling policy to determine which process
What is the size of her new monthly payment : A woman takes out a loan to be paid back over 4 years at j12 = 6% with monthly payments of $281.82. After 14 payments, the outstanding balance on the loan.
Compute labor productivity per labor-hour : Compute labor productivity per labor-hour for both old and new equipment. What increase in labor productivity is associated with the process improvement.
Minimizing the total number of daily buses in operation : Odisha State MoBus Depot runs buses as 24hr service. Each bus can operate for 8 hrs successively, and then it is directed to workshop for maintenance and fuel.
Calculate nicholas corporations basic and diluted earnings : For the fiscal year ended December 31, 2019, Nicholas Corporation reported net income of $600,000 and had 900,000 common shares outstanding from the beginning.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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