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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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