Wers development team has determined

Assignment Help Business Management
Reference no: EM131531244

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

Verified Expert

Here we run 2 thread, there will circumstance when numerous thread attempt to get to the same asset and at long last, they can deliver unexpected result due to concurrency issues. For case, on the off chance that different strings attempt to compose inside the same record at that point they may degenerate the information since one of the thread can abrogate information or while one thread is opening two spills.

Reference no: EM131531244

Questions Cloud

Discussion in class on various new technologies : We have had discussion in class on various new technologies, where do you see the computer information systems in 10 years? What will be the major issues?
Explain your plans for putting your education to use : Explain your plans for putting your education to use within your community. Demonstrate with at least two examples how your newly acquired knowledge.
Report to the cio of the project organization : Create a comprehensive report to the CIO of the project organization that covers the following:
Identify a possible topic sentence and claim the information : Identify a possible topic sentence and claim the information will support. Format your title page according to appropriate course-level APA guidelines.
Wers development team has determined : The WERS development team has determined that the current implementation of WERS leads to a race condition when assigning resources to spills.
What is the variance of returns of three stock portfolio : What is the variance of returns of a 3 stock portfolio ( with unequal weights 15%, 50%, and 35%) that produced returns of 10% ,
Organization considering cloud computing services : Address the following: Explain in detail the development of BIA for an organization considering cloud computing services.
Discuss disadvantages of each type of refresh technique : Why is RAS*-oniy refreshing now less popular than CAS*-before-RAS* refreshing? Why does the CAS*-only refresh make it easy to design a refreshing system?
What is the stocks intrinsic value today : What is the stock’s intrinsic value today?

Reviews

Write a Review

Business Management Questions & Answers

  Express one of the systems that siemens has created

Express one of the systems that Siemens has created which provides development opportunities for employees at work.

  How do you create a strong organizational culture

Why is the organizational culture so important in the successful implementation of an ethics program for a business? How do you create a strong organizational culture?

  Explain the company''s target market in terms of its size

Describe the company's target market in terms of its size, competitors, and the specific needs and wants of potential customers that your product or service is likely to satisfy.

  Scale and taking away market share

1. This is directly referred from somewhere, that needs to be mentioned fully. I noticed the references you have, but was not sure if this is all your ( group) work, it reads rather like an analyst's report.

  Question about motivation theories

Show which of the following motivation theories would be most effective to motivate these employee groups and explain

  Learn about human resources

As the HIM director, you have recently learned that your employees do not understand about the HR department.

  How organizational behavior theories can improve innovation

Prepare a literature review to discuss how Organizational Behavior theories can improve innovation and decision-making within organizations. This must provide critical analysis and synthesis of the material and provides sources that critiques or ..

  Tort of intentional infliction of emotional distress

Could Best Buy be liable when the brothers sue for the tort of intentional infliction of emotional distress because they were publicly ridiculed? Under what theory

  Changes in your consumption will produce higher utility

By plotting red wine is on the horizontal axis and white wine on the horizontal, first show graphically and then by the utility-maximizing equilibriumequation, whether your consumption of red and white wine is in fact maximizing your utility. If..

  Basic responsibility below choose

As the business communicator's first responsibility, preparation includes several facets which we will examine

  What is drucker saying with this quote

What is Drucker saying with this quote and Do you agree or disagree? Does business really have other societal obligations besides making a profit?

  Gross income of partnership

In 2014, the partnership had $600,000 of taxable income, and Rex was able to withdraw $200,000. What is Rex's gross income from the partnership in 2013, and 2014?

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