Chinaunix首页 | 论坛 | 博客
  • 博客访问: 586255
  • 博文数量: 154
  • 博客积分: 10208
  • 博客等级: 上将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-16 14:02
文章分类

全部博文(154)

文章存档

2012年(4)

2011年(44)

2010年(50)

2009年(4)

2008年(52)

我的朋友

分类:

2010-02-28 19:32:07

   

New Lock Mode, O

  In business applications an increasing number of dialogs are offered, in which data is displayed in change mode, but the likelihood that this data will be changed is not high.  If data is accessed simultaneously by different users, a locking procedure must guarantee consistent data changes. Now, the lock mode O is offered, in addition to the familiar lock modes S, E and X.

An optimistic lock (mode 0) is set, if the user displays data in change mode. Optimistic locks on the same object cannot collide. If the user wants to save the (changed) data, the optimistic lock has to be converted into an exclusive lock (mode E). (This does not work, if beforehand another user has set a non-optimistic lock on the object). This procedure deletes other optimistic locks on the object.

   

阅读(928) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~