Create a controller class that implements an fcfs schedule

Assignment Help JAVA Programming
Reference no: EM131074245

This assignment demonstrates your understanding of the various issues around the OS scheduler. It also serves to help move you along with the final project.

Before attempting this project, be sure you have completed all of the reading assignments, hands-on labs, discussions, and assignments to date.

1. Take the project you wrote in the homework last week and 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..... its a 400 level course

Attachment:- Thread.zip

Reference no: EM131074245

Questions Cloud

What is the diameter of the wire : You need to determine the diameter of a piece of copper wire in mm. The wire is 25.05 cm long and weighs 1.941 g. The density of copper is 8.933 g/cm3.
Article concerning the issue that most interested : Post comments in a forum (Be sure to cite your reference) After researching one of the topics from the Top Ten Issues, explain what you learned from your article concerning the issue that most interested you. Your post should be at least 100 words..
Explain the egocentrism or sociocentrism : Explain the egocentrism or sociocentrism, as well as any pathological tendencies of mind, involved in your thought process. How could you have applied the keys to sound decision making to approach the situation more rationally? If you prefer not t..
Why do marketing professionals care about : Are small business owners at a disadvantage if they lack the marketing research resources large companies have? Why or why not? Ch 10
Create a controller 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 - write to the system out a number of times.
What is the original ph of the biffer : a) What is the original pH of the biffer? b) What is the pH when 0.015 mol of HCL (aq) is added to the buffer? c) What is the pH when 1.0g of solid NaOH is added to the buffer?
What are the characteristics of self-actualizing people : According to Maslow, what are the characteristics of self-actualizing people? Why are these characteristics important? What are the strengths of the humanistic theories in regard to their explanation of personality
How does policy monitoring compare to policy evaluation : What is policy evaluation? How does policy monitoring compare to policy evaluation? Which is most applicable to criminal justice policy?
Carbon dioxide and liquid water : Write a balanced chemical equation for each of the following.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Demonstrate in the program how two threads can

Demonstrate in the program how two threads can, sometimes, invoke atomic() concurrently. Create a second version of the program in which the two threads cannot invoke atomic concurrently.

  Discuss the good and the bad of javascript libraries

Discuss the good and the bad of JavaScript Libraries. In what circumstances would you use Libraries? Describe what design measures you will incorporate in your web sites to assure web site security? Provide some examples.

  Design a java program that simulates a slot machine

Instead of displaying images, the program will randomly select a word from the following list: Cherries, Oranges, Plums, Bars, and Bells. The program will select and display a word from this list three times.

  Implementing dijkstras shortest-path algorithm

Implementing Dijkstras shortest-path algorithm - To improve efficiency of the program, you should add some caching to it

  Understanding of basic programming concepts

Demonstrate understanding of basic programming concepts by: 1. Constructing a simple flowchart that describes simple logic flow through a program;

  Processing file data in java

Purpose: This assignment will provide more practice in processing file data in Java.  It will also require the declaration of a class type, the creation of a list of objects, and some simple processing of the list that will involve sorting and com..

  Projectyou will create a secure parts inventory catalog

projectyou will create a secure parts inventory catalog system using model 2 architecture. the application will require

  Only allow the heroname as a parameter for the constructor

Only allow the heroName as a parameter for the constructor - Use the same code for defining the numberOfHeroes and the numberOfLifeChances

  Replace the submit button

Replace the submit button (type="submit")with a regular button (type="button").  Once the buttonis clicked, display the user inputs in an HTML table below the form, if validations are successful

  Write a driver program that reads in animals of type horse

Write a driver program that reads in 3 animals of type Horse and prints out the name, age and height of all non pure blood Horse objects that are 4 or more years old. The following information should be read per Horse:

  What are mobile oss you have personally used explain the

write a 200- to 300-word short-answer response to the following bull what are mobile oss you have personally used?

  A program called invoice that will prompt the user for items

write a program called invoice that will prompt the user for items on and invoice and then print the total of the invoice

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