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
KIM [24]
2 years ago
11

Five batch jobs A through E arrive at a computer center in the order A to E at almost the same time. They have estimated running

times of 6, 4, 1, 3, and 7 minutes. Their ( externally determined ) priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest priority. For each of the following scheduling algorithms, determine the mean process waiting time. Ignore process switching overhead.
a) Round Robin ( assume quantum = 1 )
b) Priority scheduling
c) First-come first-served
d) Shortest job first
For a), assume that the system is multitasking, and that each job gets its fair share of the CPU. For b) through d) assume that only one job at a time runs, until it finishes. All jobs are completely CPU bound.
Engineering
1 answer:
Nikolay [14]2 years ago
3 0

Answer:

Explanation:

The Turnaround time is the amount of time that elapses between the job arriving and completing. We assume that all jobs arrive at time 0, the turnaround time will simply be the time that they complete.

Round Robin:

we assume that the time quantum of the scheduler is 1 second.The table below gives a break down of which jobs will be processed during each time quantum. A asterisk(*) indicates that the job completes during that quantum.

1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29    30

A  B  C   D  E  A  B   C* D  E    A    B    D   E    A   B   D*   E     A   B     E     A    B* E   A     E  A    E*  A A

C* = 8

D*=17

B*=23

E*=28

AVERAGE TURNAROUND = (8+17+23+28+30)/5 =106/5 = 21.2 MINUTES

B) PRIORITY SCHEDULING:

1-6       7-14        15-24      25-26        27-30

   

 B           E             A             C            D

     AVERAGETURNAROUND =(6+14+24+26+30)/5 = 100/5 = 20 MINUTES.

C)FCFS

1-10      11-16      17-18      19-22      23-30

 

   A            B              C            D              E

   

AVERAGE TURNAROUND =(10+16+18+22+30)/5 = 96/5=19.2 MINTUES

D)SJF

1-2        3-6         7-12         13-20      21-30

C           D            B               E                A

AVERAGE TURNAROUND - (2+6+12+20+30)/5 =70/5 =14 MINUTES.

You might be interested in
Which traditional subject is part of construction management or construction science syllabi?
N76 [4]

Answer:mathematics

Explanation:

4 0
3 years ago
1. (5 pts) An adiabatic steam turbine operating reversibly in a powerplant receives 5 kg/s steam at 3000 kPa, 500 °C. Twenty per
KiRa [710]

Answer:

temperature of first extraction 330.8°C

temperature of second extraction 140.8°C

power output=3168Kw

Explanation:

Hello!

To solve this problem we must use the following steps.

1. We will call 1 the water vapor inlet, 2 the first extraction at 100kPa and 3 the second extraction at 200kPa

2. We use the continuity equation that states that the mass flow that enters must equal the two mass flows that leave

m1=m2+m3

As the problem says, 20% of the flow represents the first extraction for which 5 * 20% = 1kg / s

solving

5=1+m3

m3=4kg/s

3.

we find the enthalpies and temeperatures in each of the states, using thermodynamic tables

Through laboratory tests, thermodynamic tables were developed, these allow to know all the thermodynamic properties of a substance (entropy, enthalpy, pressure, specific volume, internal energy etc ..)  

through prior knowledge of two other properties

4.we find the enthalpy and entropy of state 1 using pressure and temperature

h1=Enthalpy(Water;T=T1;P=P1)

h1=3457KJ/kg

s1=Entropy(Water;T=T1;P=P1)

s1=7.234KJ/kg

4.

remembering that it is a reversible process we find the enthalpy and the temperature in the first extraction with the pressure 1000 kPa and the entropy of state 1

h2=Enthalpy(Water;s=s1;P=P2)

h2=3116KJ/kg

T2=Temperature(Water;P=P2;s=s1)

T2=330.8°C

5.we find the enthalpy and the temperature in the second extraction with the pressure 200 kPav y the entropy of state 1

h3=Enthalpy(Water;s=s1;P=P3)

h3=2750KJ/kg

T3=Temperature(Water;P=P3;s=s1)

T3=140.8°C

6.

Finally, to find the power of the turbine, we must use the first law of thermodynamics that states that the energy that enters is the same that must come out.

For this case, the turbine uses a mass flow of 5kg / s until the first extraction, and then uses a mass flow of 4kg / s for the second extraction, taking into account the above we infer the following equation

W=m1(h1-h2)+m3(h2-h3)

W=5(3457-3116)+4(3116-2750)=3168Kw

7 0
2 years ago
True or False: Stress can effectively be relieved through physical activity, getting enough rest and sleep, and relaxation techn
Neko [114]

Answer:

True

Explanation:

Actually this are some of the nitty gritty answers and ways to control or stip stress, lemme explain them you see stress most of the time may come from deep thoughts that are and are pushing you to the wall, and you in your state you as you react to that which is so demanding as it makes you tense,so if at you will incorporate physical activities like running, jogging or push ups the psychological tension in you is broken as you focus so much on the activities rather than the tension, then getting enough rest cools the mind and all your thoughts settle as in your brain starts to adapt to chilling and relaxation and enough sleep will actually make ones head to be at peace because if you lack enough sleep you might have an excruciating migraine when you are stressed up and finally relaxation techniques makes the body accept the situation and then you manouver out of it as you grow strongly.

Hope this will help!

7 0
2 years ago
Read 2 more answers
Why might construction crews want to install pipes before the foundation is poured?
denpristay [2]
I’m a concrete mason myself and I can tell you it is a pain in the butt to Roto hammer a hole into the concrete to put the pipe in it’s a lot easier to just pour the concrete around it
6 0
2 years ago
Write an expression that evaluates to true if the value of variable lastName is greater than the string Dexter.
gregori [183]

Answer:

lastName.compareTo("Dexter")>0

Explanation:

The expression that evaluates to true if the value of variable lastName is greater than the string Dexter is; lastName.compareTo("Dexter")>0.

4 0
3 years ago
Other questions:
  • A circular section of material is tested. The original specimen is 200 mm long and has a diameter of 13 mm. When loaded to its p
    11·2 answers
  • How do scientists and engineers use math to help them?
    14·1 answer
  • The title block generally contains ________.
    12·1 answer
  • Cold water (cp = 4180 J/kg·K) leading to a shower enters a thin-walled double-pipe counterflow heat exchanger at 15°C at a rate
    11·1 answer
  • Wet steam at 15 bar is throttled adiabatically in a steady-flow process to 2 bar. The resulting stream has a temperature of 130°
    7·1 answer
  • 4. At what temperature does an engine run cleanest with least wear?
    11·1 answer
  • Calculate the radius of a circular orbit for which the period is 1 day​
    13·1 answer
  • Can someone explain the answer for this question please? -metrology
    12·1 answer
  • 10) A pressure sensor consisting of a diaphragm with strain gauges bonded to its surface has the following information in its sp
    12·1 answer
  • which of the following tools is used for measuring small diameter holes which a telescoping gauge cannot fit into? A. telescopin
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!