摘要: lock 关键字将语句块标记为临界区,方法是获取给定对象的互斥锁,执行语句,然后释放该锁。此语句的形式如下: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Object thisLock = new Object();lock (this... 阅读全文
posted @ 2009-03-16 15:38 chunchill 阅读(897) 评论(0) 推荐(0) 编辑