Race conditions are possible in many computer systems


Race conditions are possible in many computer systems. Consider a banking system with 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 occuring. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Race conditions are possible in many computer systems
Reference No:- TGS0143165

Expected delivery within 24 Hours