How to simulate

Assignment Help Basic Computer Science
Reference no: EM13340045

Suppose a computer has num Of CPU units and there are several processes need to bedistributed to different CPU for computing. You are using two queues to simulate as in thefollowing figure:

TaskQ is a queue that stores all the processes. Each process is a pair type <int, int>. These twointegers are process ID and the requested CPU time. We have a text file contains every processinfo like:

1 2
2 2
3 4
4 3
5 6
6 1
...
...
...
Here, each line is a process. First int is ID, second integer is CPU time. CPUunitQ is a queue that stores the index # for available cpu units.
How to simulate?

Reference no: EM13340045

Questions Cloud

Program that prompts the user to enter the weight of person : The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly.
What is lf to find the latent heat of fusion : If you want to find the latent heat of fusion, you take a cup with 0.755 kg of water at 30.00 C and drop 0.0850 kg of ice initially at 0.000 C and it all reaches an equilibrium temperature of 19.00 C,
What will the final temperature be after all the solid form : If an piece of Iron (c = 450 J/kg C) at 65.00 C is dropped into .250 kg of ethyl alcohol at 25.00 C and the final temperature of the two comes to 35.00 C what was the mass of the piece of iron
By what means can managers use to assess political risk : By what means can managers use to assess political risk?
How to simulate : Here, each line is a process. First int is ID, second integer is CPU time. CPUunitQ is a queue that stores the index # for available cpu units. How to simulate?
Chance of being short on order : For any kind of companies it is important to choose and use the right types of costing system. Costing system is an accounting system uses by companies and organizations to monitor the company's expenditures and overheads
Determine the angular speed of the rod : A uniform rod of mass 3.05×10?2kg and length 0.450m rotates in a horizontal plane about a fixed axis through its center and perpendicular to the rod. What is the angular speed of the rod after the rings leave it?
Write a short c++ function : Write a short C++ function, isMultiple, that takes two positive long values, n and m, and returns true if and only if n is a multiple of m, that is, n = mi for some integer i.
Determine what will the combined sound level be : The background sound level at your plant is 84 dBA. If a compressor generates a sound level of 87.3 dBA, what will the combined sound level be when the compressor is on

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Use strong mathematical induction to prove

Use (Weak) Mathematical Induction to prove that for n ? 0, an = 4 · 3^n

  How to do electronic configuration

How to do electronic configuration

  Calculate overall cost including installation-configuration

Calculate the overall cost, including installation, configuration, maintenance, ISP, and miscellaneous costs. Do not consider depreciation in the cost computation.

  Ways in which time-dependent signals can be classified

•Discuss some ways in which time-dependent signals can be classified. •Discuss what is meant by "basic signal representation" and the advantage of this type of representation.

  Create user documentation for the nontechnical personnel

Create user documentation for the nontechnical personnel. Include an overview of features of the application as well as instructional materials. Screen shots should be included for clarity as well.

  Compute millions of instructions per second of program

Compute the MIPS (Millions of Instructions Per Second) rating for each processor during execution of this particular program

  How is file management utilized and managed

How is file management utilized and managed? What tools can you use? For those of you who work, how is file management managed in your place of business?"

  Explaining how you benefit from your use of the internet

Compose a paragraph explaining how you benefit from your use of the Internet. Make sure it is practical and related to work, school or personal life.

  Develop an interface evaluation questionnaire

Develop an interface evaluation questionnaire that contains 20 generic questions that would apply to most interfaces.

  These function prototypes lack parameters

These function prototypes lack parameters; add whatever parameters you feel are necessary so that the program works without global variables. The program's output should reflect the bus's actions by reporting each change in state, along with the n..

  Create an application that generates a quiz

Create an application that generates a quiz. Prompt for the user's first and last name, college major, and confidence in test taking (high, medium, or low). The quiz should contain at least five true/false questions about horticulture.

  What is the difference between text i/o and binary i/o

What is the difference between text I/O and binary I/O?

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