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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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