void DoubleBalance(BankAccount acct) { lock (acct.lk) { acct.Balance = acct.Balance * 2; } }
void DoubleBalance(BankAccount acct) { acct.Balance = acct.Balance * 2; }