Two emergency response plans

Assignment Help Basic Computer Science
Reference no: EM131524454

Consider the following scenario. You have been asked to extend WERS so that two emergency response plans can be generated for spills that are reported simultaneously.

To handle this, you will need to develop code that generates two response plans concurrently using the WERS Planner. The response plan processes must be created as threads, and they must run simultaneously. You may create threads as either subclasses of the Thread class or as classes that implement and use the Runnable interface. Whichever way you decide to implement them you must make sure that they are running simultaneously.

Your processes should provide enough output to standard error (stderr) to clearly show when each thread starts and finishes, what its Project ID is, and what planner it is using. You may wish to include additional information from each thread as it runs.

At the minimum, make sure that your system sends the following information to stderr :

  • What threads are running
  • When each thread starts and ends
  • What planner object each thread accesses

Once you have completed your updates, confirm the system runs as required.

Verified Expert

For them to run at the same time, each of these two assignments will run in an isolated string. To characterize a execute job simultaneously we will wrap each of these Runnables around an object. Runnable. A Runnable question characterizes an real assignment that is to be executed.

Reference no: EM131524454

Questions Cloud

Command to show all commands : Use the fc command to show all commands you have executed since the last time you executed grep.
Symmetric and public-key encryption : One of the most widely used public-key encryption algorithms is RSA. RSA was developed at the Massachusetts Institute of Technology (MIT) in 1977 by Ron Rivest
Find the approximate ce for the investment : A decision maker's assessed risk tolerance is $1,210. Assume that this individual's preferences can be modeled with an exponential utility function.
Clinicians practicing rogerian therapy : How do you think clinicians practicing Rogerian therapy would approach these concepts for these clients?
Two emergency response plans : You have been asked to extend WERS so that two emergency response plans can be generated for spills that are reported simultaneously.
Describe how physical structure affects human behavior : Describe how physical structure affects human behavior.Analyze architecture as a means of controlling human behavior.
Analyze an equation and graph of a generic model : In the first part of the activity, you will analyze an equation and graph of a generic model of limited logistic growth.
Element of an it system : What element of an IT system do you think is responsible for most problems according to many (most, I think) security practitioners?
Ideal communication mechanism : The Internet is an ideal communication mechanism because of its openness and anonymity but people must make ethical decisions about how to use this power.

Reviews

inf1524454

5/9/2018 5:56:47 AM

Submit the following: The source code for any new or updated classes with appropriate comments (Make sure to include the following comment above your updates: "// CHANGED for THREAD IMPLEMENTATION".) A brief description of how you applied the threads (as either a subclass of thread, or as separate runnable processes) and a justification for how you applied them Screenshots of the updated system running, with the relevant output to stderr A single, updated UML sequence diagram that shows how your thread process interacts with the WERS Planner

Write a Review

 

Basic Computer Science Questions & Answers

  A complex and highly sophisticated computer worm

In June 2010, Stuxnet, a complex and highly sophisticated computer worm was discovered by Kaspersky Lab. Stuxnet targeted Siemens industrial Supervisory Control and Data Acquisition (SCADA) systems. It was reported that the worm appeared to target Ir..

  Initial review of the use of standard documentation

After undertaking a regular review of the organisation's use of templates and macros, Kim has become concerned that employees are not using templates and macros properly. Prepare an email which Kim could send to John to provide information about he..

  How might they predict a decline in real gdp

Suppose that stock prices were to fall by 10 percent in the stock market. All else equal, would the lower stock prices be likely to cause a decrease in real GDP? How might they predict a decline in real GDP?

  How would you best troubleshoot the problem

A wireless laptop is trying to connect to a printer via a LAN. The laptop can find the printer, but cannot connect to it. How would you best troubleshoot the problem?

  Describe three elements of risk

Choose between a private corporation, government entity, or University and describe three elements of risk that you feel need to be managed on a day-to-day basis. Be sure to define why risk management needs to be in place and what countermeasures ..

  Describe the differences and changes

Since the early 1980's the Internet has become a part of our daily lives. Those born after 1980 probably cannot imagine a life without the internet.

  Creating an oracle

The clique problem itself is NP-hard. Thus you may not wish to have an oracle that runs in exponential time. Consider approach to approximate the solution.

  Cell reference of the upper-left cell of the rectangular

Each range is identified with a range reference that includes the cell reference of the upper-left cell of the rectangular block and the cell reference of the lower-right cell separated by a what?

  Holding increasing amounts of us treasury debt

The government of China is growing concerned about holding increasing amounts of US treasury debt. To deal with the problem

  Determine the minimum required flow rate of fresh air

Determine the minimum required flow rate of fresh air that needs to be supplied to the lounge, and the diameter of the duct if the air velocity is not to exceed 8 m/s.

  Create a table resourcetypes

Create a table "ResourceTypes" with the following fields (as always: keep the field names exactly as specified below and the data types

  Program should contain menu driven program

1.Program should contain menu- driven program. 2.One function shows the user how to use the program.

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