Describe how a race condition is possible


Race conditions are possible in many computer systems. Consider a banking system with the following two functions: deposit(amount) and withdraw(amount). These two functions are passed the amount that is to be deposited or withdrawn from a bank account. Assume a shared bank account exists between a husband and wife and concurrently the husband calls the 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.

Request for Solution File

Ask an Expert for Answer!!
Operation Management: Describe how a race condition is possible
Reference No:- TGS088671

Expected delivery within 24 Hours