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 program which asks the user to enter a letter grade

Write a program which Asks the user to enter a letter grade (A, B, C, D, F) or (a, b, c, d, f) and Validates that the entry is a letter grade (A, B, C, D, F) or (a, b, c, d, f).

  Program to overload the addition assignment operator

Overload the addition assignment operator (+=), the subtraction assignment operator (-=), and the multiplication assignment operator (*=).

  Design a program to analyze the problem

Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input

  Write a dim statement that declares a myfriend variable name

Write a Dim statement that declares a MyFriend variable named school. Write an assignment statement that assigns the value in the txtFirst control to the strFirst member.

  Write a program that prompts the salesperson

Write a program that prompts the salesperson for the name of the customer and the price of the textbooks sold to that customer.

  Write a program that simulates the rolling of two dice

Write a program that simulates the rolling of two dice. The program should use rand to roll the first die and again use it to roll the second die.

  Write a program for a 1-d numpy array

Write a program to provide the following tasks for a 1-D NumPy array: Create and print a one-dimensional (1-D) with 20 numerical items.

  Write a program that inputs a filename from the user

Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period.

  Creating main function that opens the input file

Create a main function that opens the input file, reads each line, and based on first character in input line, calls the [A]dd function or [M]ultiply function.

  Sort the list using the insertion sort

Exercise: Use the bubble sort to sort 6, 2, 3, 1, 5, 4, showing the lists obtained at each step.

  Complete the project coding in your lab php and mysql

ICTPRG527 Apply intermediate object-oriented language skills Assignment. Write a simple Design Project Proposal call proposal.docx including: Case Description; Complete the project coding in your Lab PHP and MySQL developing environment: (i.e. Dreamw..

  Describe your idea and analyze complexity of your solution

Describe your idea and analyze the complexity of your solution. Give O(N) algorithm to solve the problem. Analyze the complexity of your algorithm. Describe your approach and analyze the complexity of your algorithm.

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