Question

Assume we have a banking system that allows users to have joint accounts. On these joint...

Assume we have a banking system that allows users to have joint accounts. On these joint accounts, two users may access the same account and perform withdraw and deposit concurrently. Describe how race condition can occur and in which areas of the system can it occur? Operating system course

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Race Condition is a problem in a system that can occur when a system is access concurently by multiple users at the same time.
in the same way if one joint bank account is access by two users at the same time then race condition occur and it effect the account bank balance and the banking system.

for example:
if an account has a current bank balance is $1,000.
now one user can withdraw $500 and another deposit $5,000 to the account at the same time,

Withdraw Deposit
Read account balance Read account balance
Subtract $500 Add $5,000
write account balance    Write account balnace

Possible outcomes were: $5500, $500, $6000

so this s the result of race condition, that how it effects the bank balance of a joint account.

Add a comment
Know the answer?
Add Answer to:
Assume we have a banking system that allows users to have joint accounts. On these joint...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider a banking system that maintains an account balance with two functions: deposit (amount) and withdraw...

    Consider a banking system that maintains an account balance with two functions: deposit (amount) and withdraw (amount). These two functions are passed the amount that is to be deposited or withdrawn from the bank account balance. Assume that a husband and wife share a bank account. Concurrently, the husband calls withdraw ( ) function and the wife calls deposit ( ). Describe how a race condition is possible and what might be done to prevent the race condition from occurring?

  • Banking System (Java Programming) 1 bank (Bank) has 5 accounts holder (Account) also designing te...

    Banking System (Java Programming) 1 bank (Bank) has 5 accounts holder (Account) also designing textbased menu (switch case): Main Menu: 1. Admin Login 2. User Login 3. Exit Admin Menu: 1. Add an Account 2. Remove an Account 3. Print total balance 4. Print total balance per city 5. Go back to main menu User Login 1. Withdraw //also redo last withdraw 2. Deposit //also redo last deposit 3. print account 4. Go back to main menu Designing class Account...

  • C++ Design and implement a hierarchy inheritance system of banking, which includes Savings and Checking accounts...

    C++ Design and implement a hierarchy inheritance system of banking, which includes Savings and Checking accounts of a customer. Inheritance and virtual functions must be used and applied, otherwise, there is no credit. The following features must be incorporated: 1. The account must have an ID and customer’s full name and his/her social security number. 2. General types of banking transactions for both accounts, Checking and Savings: withdraw, deposit, calculate interest (based on the current balance, and if it was...

  • BANKING MANAGEMENT

    Banking System is developed in C++ to replaced manual System by a computerized system. This system allows to create a new account and Allows to deposit and withdrawal amount facilities. Account Holder ABS must record the detailed information of each account holder, such as  Type of his account (see next slides for more info)  Type of Credit card (see later slides for more info)  First name, middle name, and last name  CNIC number Address Telephone number Date of...

  • A local Financial Institution (FI) is in the business of Personal, Commercial and mortgage banking. They...

    A local Financial Institution (FI) is in the business of Personal, Commercial and mortgage banking. They offer various products like interest and non-interest bearing checking accounts, savings accounts, CD, Kids Savings account, Mortgage loan accounts and Line of credit accounts. The FI provides a combined electronic statement of the accounts of an account holder to the account holder on a monthly basis. Account holders are able to login to the banking system and have full online access to their accounts....

  • Here are requirements of a C code. I think it is not difficult for you because...

    Here are requirements of a C code. I think it is not difficult for you because i have deleted some requirements. (I think it will be better if user can choose their identification once runned). Please write in C and give some explains! Overall description: Your team is employed by a bank to implement a system to manage the banking affairs. Customer specifications: The implementation of the banking system should be able to provide facilities to: • Register a new...

  • Assume that you have been asked to create a mobile user interface that allows students to...

    Assume that you have been asked to create a mobile user interface that allows students to search for courses. The user should be able to enter search criteria, view a list of results (the course IDs,Title, Term and Year), then select an item of the list to display more information (Instructor, Room, Summary, Prerequisites). 1. Who are the relevant stakeholders? Who could be primary and secondary users? 2. What is the context of use? 3. Design an interface that can...

  • Assume that the following balance sheet portrays the state of the banking system. The banks currently have no excess reserves.

    Assume that the following balance sheet portrays the state of the banking system. The banks currently have no excess reserves. What is the required reserve ratio? 25% 10% 40% 5%Suppose that the Federal Reserve (the "Fed") buys $10 million of bonds from a bond dealer, who immediately deposits the funds in her checking account. What is the initial impact of this transaction? The banking system's holdings of securities fall by $10 million, and the banking system's total reserves rise by $10 million. Checkable deposits...

  • Problem 1) Banking Application Consider the application domain of a banking application where you have customers...

    Problem 1) Banking Application Consider the application domain of a banking application where you have customers who have one or more accounts of type Checking or Saving. Some of the customers may also have one or more loans that they have taken from the bank. Each loan has a borrowed amount and current balance amount. Loan may be either outstanding or paid off. Questions 1. Create a Conceptual model (List Entities and note Relationships, 2- 3 Relationships only) (3 Pts)...

  • Create an application programming interface (API) using stored procedures that allows an EMR system developer to...

    Create an application programming interface (API) using stored procedures that allows an EMR system developer to work with the database without having to write SQL statements Add user authentication so that only authorized users can access the database Add some form of role-based access control to limit the functions that a user can perform. You should implement at least one use case to demonstrate this capability. For example, you may allow a physician to delete a prescription order, but not...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT