摘要:
1. The following sample uses threads and lock. As long as the lock statement is present, the statement block is a critical section and balance will never become a negative number. // using System.Threading; class Account { private Object thisLock = new Object(); int balance; ... 阅读全文
posted @ 2012-04-24 16:58
cutebear
阅读(652)
评论(0)
推荐(0)
浙公网安备 33010602011771号