Class that implements an fcfs schedule

Assignment Help Basic Computer Science
Reference no: EM13923662

Do a FCFS scheduler with 5 IO bound threads (1 class) and 5 processor bound threads (another class).

a) The IO bound class will be a thread class that runs an IO intensive operation.  You can write to the system out a number of times (ie 1000) or do something like read and write a file.

b) The processor bound class will be a thread class that runs a computationally intensive operation.  You can perform some math computation a number of times. No IO in the loop.

c) Create a controller class that implements an FCFS schedule and instantiates 5 objects of each class and runs each object.

2) Take the start and stop time for each thread and print out the time it takes to run.

3) Take the start and stop time to schedule and run all the threads and print out the time to run.

4) Run the program 3 times.

a) First time intersperse the IO bound and computationally intensive operations (call the start method).

b) Second time run the IO bound threads first and the processor bound second.

c) Third time run the processor bound threads first and the IO bound second.

5) Attach your code as well as a document.  The document should include snapshots (enough to demonstrate it ran) of the running code as well as results in spreadsheet form.  Results should also list the wait time for each thread.  Also calculate for each of the 3 scenarios the average wait time for the IO bound threads, processor bound threads and the overall run time for all of the threads.  Include a lessons learned contrasting how the Java environment handled the 3 scenarios.  

6) Code should follow standard practices with good commenting, variable and method names, and good formatting.

Reference no: EM13923662

Questions Cloud

Information storage in the primitive cell : Could RNA have been the original site of information storage in the primitive cell? A difficult problem with this possibility is that
Simple progressive income tax-standard deduction : Assume that there is a very simple progressive income tax in the country. The marginal tax rate is 10% for income over $5000 to $10,000. It is 20% for income over $10,000 to $25,000, and it is 30% for income over $25,000. How would your answer in par..
The distribution and parameter(s) of y : A recent survey indicated that 48% of mobile devices are iPhones. To see if this seemed to be true of Purdue's campus, you randomly ask 10 people if they use an iPhone. Assume all individuals on campus are independent, let Y be the number of peopl..
Major limitation in all real natural populations : A major limitation in all real natural populations that prevents the potential power of directional selection from being demonstrated: real nature populations
Class that implements an fcfs schedule : Create a controller class that implements an FCFS schedule and instantiates 5 objects of each class and runs each object. Take the start and stop time for each thread and print out the time it takes to run.
Case study-toyota prius marketing strategies : Analyzing a company through the help of given case study to narrow the scope for them. This assignment gives the opportunity to students to investigate new area of study totally related to consumer behavior theories but happened in the real life a..
What is the nominal annual breakeven rate : Stanovich Enterprises has 10-year, 12.0% semiannual coupon bonds outstanding. Each bond is now eligible to be called at a call price of $1,060. If the bonds are called, the company must replace them with new 10-year bonds. The flotation cost of issui..
Find an example of an actual corporate code of ethics : Perform an Internet search and find an example of an actual corporate code of ethics. Based on your understanding of the code of ethics, critique it from the perspective that it stipulates the firm's commitment to operate every facet of the business ..
Members of species globigerina bulloides : All members of species Globigerina bulloides belong to the large "Group" known as

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are the differences between a struct and a class

What are the differences between a struct and a class?

  The amount of sales as input and outputs the total amount

A sales person gets a base salary of $200. They also get 3% of any sales between $500 and $1000 and 5% of any sales over $1000. Write a driver program named Commission.java that takes in the amount of sales as input and outputs the total amo..

  Calculate the weighed score for the homework assignments

For this program, you are going to modify your previous program so that it will now read multiple inputs for each homework assignment (you will need to have a flag to end inputting assignments).

  Create a new account for a new customer

You have been asked to write a program to organize accounts in a bank. Suppose all the accounts are stored in a data file called account.dat.

  Which data input appears on output y

View a datasheet function table for a 74151 device. Using Quartus pin names, assume the chip is enabled and C = 1, B = 0, and A = 0. Which data input appears on output Y?

  Discuss the points and tabulate the strengths and weakness

Please discuss the points and tabulate the strengths and weaknesses

  Our model assumes that the arrival distribution of customers

In the McBurgers simulation, our model assumes that the arrival distribution of customers is the same throughout the entire day. Do you think this is a realistic assumption? If not, explain how you could modify the model to make it a better repres..

  Which a person requests a service and diagram

Take an example from your work or school in which a person requests a service and diagram that request. Does the request pass through any layers before it reaches the intended recipient? Do logical connections as well as physical connections exist? S..

  Create a column of integers 1 through 30

In the next three columns show how each value is represented using the binary, octal, and hex number systems. Identify when and why each of the each three numbering systems is used ?

  Exception handling to deal with input or output errors

Exception handling to deal with input or output errors

  News website for australian broadcasting corporation

Provide an expert review of the news website for Australian Broadcasting Corporation

  Compare and contrast announced penetration testing

Compare and contrast announced penetration testing and unannounced penetration testing. Speculate on whether or not there are instances where unannounced testing is preferred over announced testing. Justify your resp

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