You have been asked to extend wers so that two emergency


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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: You have been asked to extend wers so that two emergency
Reference No:- TGS02320009

Now Priced at $15 (50% Discount)

Recommended (97%)

Rated (4.9/5)