1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
max2010maxim [7]
4 years ago
14

Assume that the system has a multiple level queue with a variable time quantum per queue, and that the incoming job needs 80 ms

to run to completion. If the first queue has a time quantum of 5 ms and each queue thereafter has a time quantum that is twice as large as the previous one, how many times will the job be interrupted and on which queue will it finish its execution? Calculate how much time in ms that it spends in each queue.
Computers and Technology
1 answer:
storchak [24]4 years ago
7 0

Answer:

a. No. of times Job interrupted = 4

b. Job Finish at Which Queue = 5th

c. Time Spends on each Queue

Queue 1 = 5ms

Queue 2 = 2x 5ms = 10ms

Queue 3 = 2x 10ms = 20ms

Queue 4 = 2x 20ms = 40ms

Queue 5 = 2x 40ms = 80 ms

Explanation:

<u>Given Data:</u>

Total Time Required to complete the job = 80ms

Time Quantum of First Queue = 5ms

<u>To Find</u>

a. No. of times Job interrupted ?

b. Job Finish at Which Queue ?

c. Time Spends on each Queue?

<u>Solution</u>

As Given Data

Queue 1 = 5ms

each Queue has double time Quantum than Previous one so that,

Queue 2 = 2x 5ms = 10ms

Queue 3 = 2x 10ms = 20ms

Queue 4 = 2x 20ms = 40ms

Queue 5 = 2x 40ms = 80 ms

a. The System will interrupt 4 times as there are five queue in the system.

b. As mentioned in Question that 80ms will it take to complete the job so, This task will be completed in 5th Queue.

c. Total Time Spends in each queue is calculated above as

Queue 1 = 5ms

Queue 2 = 2x 5ms = 10ms

Queue 3 = 2x 10ms = 20ms

Queue 4 = 2x 20ms = 40ms

Queue 5 = 2x 40ms = 80 ms

You might be interested in
Algorithm for converting decimal into binary.
belka [17]
The simplest way is to make for loop first you need to<span> generate 1,2,4,8,16,32,64,128,256....and others number in Array. Then you will check every number. Like this.</span>
<span>Decimal </span>Input 84;
64 is closest to 84.
84-64=20
<span>Write: </span>1
20-32=-12(Because It's negative you will write 0)
Write:10
20-16=4
<span>Write: </span>101
4-8=-4 (Negative)
Write:1010
4-4=0
<span>Write: </span>10101
0-2=-2
0-1=-1
<span>Write: </span><span>1010100 = 84</span>
7 0
4 years ago
Select the correct answer.
bagirrra123 [75]

Answer:

I think the answer is C

Explanation:

Because if you use context clues for the word CINEMATOGRAPHER, cinema is like scene and lights and tographer is the person who adjusts it

4 0
3 years ago
"in program arrays12.java a swap method is called. does the swap method exchange parameter values x and y?"
Artist 52 [7]

Answer:

The answer is "True".

Explanation:

In the given question option is missing, that is "true or false", which can be described as follows:

In the given question, it is declared, that an "arrays12.java" program file is declared So, the class name is  "arrays12" because in java class name and the program file name is the same.

  • Inside the class, a swap method is called, that first accepts value.
  • After accepting the value it is defined as another variable, that swap variable values, that's why the answer to this question is true.
7 0
4 years ago
In _________, the process requests permission to access and modify variables shared with others. A) entry section B) critical se
AleksAgata [21]

In entry section, the process requests permission to access and modify variables shared with others.

<h3>What is Entry section?</h3>

Entry Section is known to be an aspect of any given process that tells the entry of a specific process.

Note that it often allows one process to enter and alter the shared variable and as such, In entry section, the process requests permission to access and modify variables shared with others.

Learn more about entry section from

brainly.com/question/1637572

#SPJ1

3 0
2 years ago
What is an assembler?
Flauer [41]

an assembler is a program that converts code written in a high-level language to assembly language that the computer processor can execute.

4 0
3 years ago
Other questions:
  • What naming scheme identifies the rows in a worksheet?
    5·2 answers
  • Physical parts of components of a computer system is called
    9·1 answer
  • Which of the following statements about the placement of illustrations in documents is true?
    12·1 answer
  • Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: 3 8 then the outp
    12·1 answer
  • Which of the following refers to a descriptive technique involving the systematic collection of quantitative​ information? A. Lo
    5·1 answer
  • Assume that the demand curve for DVD players shifts to the left and the supply curve for DVD players shifts to the right, but th
    6·1 answer
  • Write a program that prompts the user for the name of two files each containing a single line that represents a decimal integerc
    11·1 answer
  • Click print to publish your post in a blog true or false.​
    5·2 answers
  • After running the following pseudocode, what will the value of VARIABLE be? 1. Set value of VARIABLE to 5 2. Increase the value
    15·1 answer
  • What is keyword density?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!