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

  Write an expression those results in a string consisting

Write an expression those results in a string consisting of the third through tenth characters of the strings. Make this program using java programming.

  Write program to keep track of employees pays per quarter

Write a program to keep track of their employees' pays per each quarter. There are two types of employees: Managers and SalesReps.

  Design implement test and debug a program with a jframe

design implement test and debug a program with a jframe that allows the user to enter a series of contacts names ages

  Write a program in java that uses a method called quadrant

JAVA) write a program IN JAVA that uses a method called quadrant that accepts as parameters a pair of double values representing an (x, y) point and returns the quadrant number for that point. Recall that quadrants are numbered as integers from 1 to ..

  Compare string values

Write a program that reads two strings from the keyboard and compares them and prints whether they are equal or not.

  Why do i not create a constructor for an applet

When should one use applets and when should one use servlets? Why do I not create a constructor for an applet? Why doesn't appletviewer appletclass.class work?

  Implement a javascript program for the validation case

Write a JavaScript program for the validation case using the RegExp method - implement a JavaScript program for the validation case

  Java program on roulette

Consider the game of Roulette, where players bet on the numbers 1 through 36 (as well as 0 and 00). A large wheel consisting all 38 of these numbers and a small ball is spun until the ball lands on one of these numbers at random.

  Prints all real solutions to the quadratic equation

Write a Java program that prints all real solutions to the quadratic equation ax^2 + bx + c = 0. Read in a, b, c and use the quadratic formula

  The access modifier of constructors should be

The access modifier of constructors should be

  How does a client send a string ti the server using udp

How does a client send a string ti the server using UDP? Show what the client would do to get data from some string, and create a datagram packet destined for a server at "www.google.com", port 12345.

  Create a dice game that uses a six-sided die

Create a dice game that uses a six-sided die - Using switch statements print the face of the die based on the value obtained.

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