摘要: The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. This statement takes the following form:Object thisLock = new Object();lock (thisLock){ // Critical code section}/************ 阅读全文
posted @ 2012-12-04 16:44 一 缕 阳 光 阅读(207) 评论(0) 推荐(0) 编辑