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

Description of the network technologies and components

Prepare a Word document that is approximately 3-5 pages in APA format. It should be professional in appearance and suitable for review by network novices. Present the inform

Location vacuum world under murphy law

Consider the accessible,two-location vacuum world under Murphy's Law. Show that for each initial state, there is a sequence of actions that is guaranteed to reach a goal sta

Present inside the container

A 50.0 g piece of CO2(s) (i.e. "dry ice") is sealed inside a0.250 L container held at 20°C. Based on the phase diagram of CO2(Figure 11.42 in the textbook), what state(s) of

Advantage and disadvantage of using word to work in graphics

Identify the advantages and disadvantages of using Word to work with graphics, tables, and special formatting functionality. Provide specific examples.

Design an excess-3 code converter to drive a seven-segment

Design a circuit which displays the letters A through Jon a seven-segment indicator.The circuit has four inputs W,X , Y,Z which represent the last 4 bits of the ASCII code f

Network fundamental characteristics and components

Select an organization you are familiar with, or select one of the Virtual Organizations (Riordan Manufacturing or Kudler Foods), for your project. This project will continu

Computing the geometric mean of a group of numbers

Write the function meansAndMedian which takes in a vector of numbers and returns the arithmetic and geometric means, as well as the median. You may not use the built-in func

What is the economic impact of integrated delivery systems

What is the economic impact of integrated delivery systems (IDS) and how can IDS improve economic outcomes for the U.S. healthcare delivery system? Provide examples to suppo


Write a Review

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