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

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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