会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Vincent Yan
博客园
首页
新随笔
联系
管理
订阅
2009年11月13日
Lock和Monitor的区别
摘要: 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)
编辑
公告