摘要: Lock和Monitor都是对被操作对象同步控制的方法Lock 是 Monitor的简化版本,ILcallvirt ...Monitor.Enter(object)...leave.s....callvirt ...Monitor.Exit(object)Lock 只能对引用对象加锁Lock锁定区间内可以对锁定值修改而不发生运行时错误,通常也会采用此种修改方式。这种方式又有点类同于使用Monito... 阅读全文
posted @ 2009-11-13 15:27 Vincent Yan 阅读(1482) 评论(1) 推荐(0) 编辑