Draw the above-mentioned sequence in form of a table and see if there is a problem. What this problem is called and how can we avoid such kind of problem? Propose some solutions (at least two) and then explain which one is better and why?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter4: The Selection Structure
Section: Chapter Questions
Problem 1MQ6
icon
Related questions
Question

Saira owns a small business and she frequently makes transactions. Sometimes she makes
payments and other times payments are credited in her account. One of her customer Tania purchased
a product and credited payment while another payment by Saira was in progress. Now the sequence of
transaction is as follows:
1. Tania’s account read amount in saira’s account
2. Saira’s account read amount in saira’s account
3. Tania added Rs. 500/- in original amount (that was lets suppose Rs. 60,000/

4. Saira’s account subtracted Rs. 2000/- that she debited in someone else’s account form the

original amount (that was Rs. 60,000)

5. Tania’s account committed the transaction

6. Saira’s account committed the transaction

Draw the above-mentioned sequence in form of a table and see if there is a problem. What this

problem is called and how can we avoid such kind of problem? Propose some solutions (at least two)

and then explain which one is better and why?

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Avoiding deadlock
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning