Determining the wers development team

Assignment Help Business Management
Reference no: EM131532805

Consider the following scenario. The WERS development team has determined that the current implementation of WERS leads to a race condition when assigning resources to spills. In WERS, spill kits are resources assigned to an emergency spill. A spill kit is considered an expended resource, which means that each emergency spill must be assigned its own spill kit. A spill kit may not be assigned to more than one spill.

However, developers found that when two or more spills are responded to simultaneously, each response process is in a race for a spill kit. One may grab it first, or they may both "take" the identical spill kit resource simultaneously. If you run the scenario for two concurrent spills you will find that, at least sometimes, WERS will assign the same spill kit to both spills.

Because of the race condition leading to the possibility of assigning one spill kit to two or more spills, WERS must be updated to eliminate this race condition.

To eliminate the race condition, you must update WERS so that two processes never get the same spill kit. Each spill must be assigned a different spill kit. You will need to insure "synchronization" at the moment of requesting the spill kit. You will need to find the narrowest piece of code that Java lets you control and to protect (with synchronized) in order to guarantee each spill is assigned its own spill kit.

Be sure you leave as much concurrency as you can while guaranteeing that the result is always correct. Your task requires an understanding of concurrency and the ability to imagine how the processes might interleave but not much code is involved here. You should experiment with multiple runs for each possible location. Try to repeat runs of your updated WERS until you are convinced you have a correct, minimally synchronized solution.

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

By Day 7, 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 SAFETY IMPLEMENTATION".)
  • A brief description of how you determined the narrowest piece of code to protect via synchronized, and a justification for your determination
  • Screenshots of the updated system running and showing two spills, even in the same room, getting different spill kits

Reference no: EM131532805

Questions Cloud

Determine the incremental rate of return for machine : determine the Incremental Rate of Return for the machine, which should be selected. Show work, not spreadsheet.
Investment represents the difference between the investment : The net present value of an investment represents the difference between the investment's:
Different types of cybermalls and shopping consortiums : Describe different types of cybermalls and shopping consortiums. What comprises a good e-commerce Web site?
Determine the amount of dividends each class of stock : Determine the amount of dividends each class of stock will receive given the following assumptions:
Determining the wers development team : Consider the following scenario. The WERS development team has determined that the current implementation of WERS leads to a race condition
Focus on the various conceptual theories : Focus on the various conceptual theories and models that are currently used in nursing research.
Depreciated straight-line to zero over its four-year life : The plant has an installation cost of $17.8 million, which will be depreciated straight-line to zero over its four-year life.
Relationship between organizational design and structure : What contingencies would cause an organization to choose an organic rather than a mechanistic structure?
Transferring a series of two messages : Consider two computers transferring a series of two messages using Stop-and-Wait ARQ. Suppose the first message is initially received with an error

Reviews

Write a Review

Business Management Questions & Answers

  Assuming the responsibility of leadership

Is there one best way? Assuming the responsibility of leadership, a leader also assumes the intellectual qualities that accompany it. Many leaders have made poor process improvement decisions to achieve their goals. For this assignment, use the In..

  How can a company leverage its employees strengths

BUS 302- Complete the StrengthsFinder quiz located in the back of your book. What are your top five strengths? Were you surprised at the results? How can a company leverage its employees' strengths to build strong company culture?

  Compare and contrast the groups depicted in the two films

What advantages does a mature group have, and what examples can you point to from each film that illustrate those advantages?

  The methods used to soften the effects of this imbalance

The methods used to soften the effects of this imbalance?

  How business information system identified by your colleague

Examine how the business information systems identified by your colleague would affect your professional or personal practices or your organization. What opportunities might there be?

  Conduct a pilot test

To what extent the Sub-Saharan African countries governments developed the potential of their citizenry in entrepreneurship - Describe the population and sampling strategy

  Determining the rectangular coordinates

Convert the polar coordinate (3, 220°) into rectangular coordinates. Round the rectangular coordinates to the nearest hundredth. Please show all the work.

  Explaining mintzberg-s matrix

You post your ideas on the roles that a manager may need to assume that are and are not described in Mintzberg's matrix.

  Types according to task taxonomy

Assess the value to an interface designer, of being familiar with the seven basic tasks and create an argument for which three of the seven basic tasks are the most important to incorporate in a designparagraph and references.

  International business and the world economy

It has been suggested that the existence of the World Wide Web has impacted international business and the world economy. Explain your answer with a well-constructed and cogent response.

  Prepare an annotated bibliography on one of the given factor

Prepare an annotated bibliography on one of the following factors that has had a significant impact on business and management communication in the past decade:

  What are some ways you might approach a customer

What are some ways you might approach a customer? Would some work better in one situation or another?- What is the objective of the sales presentation?

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