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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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