void BalanceTransfer(Account &FromAccount, Account &ToAccount, double amount)
{
FromAccount.Substract(amount);
ToAccount.Add(amount);
//What is the best way to protect this function if there are 100 threads calling this function for 1000's of accounts...
}
问问题
48 次