首页 | 本学科首页   官方微博 | 高级检索  
     

相对位置乐观锁机制及在协同编辑中的应用
引用本文:毛启容,王进峰,詹永照.相对位置乐观锁机制及在协同编辑中的应用[J].计算机辅助设计与图形学学报,2004,16(9):1307-1312.
作者姓名:毛启容  王进峰  詹永照
作者单位:江苏大学计算机科学与通信工程学院,镇江,212013
基金项目:国家自然科学基金 ( 60 2 73 0 40 ),教育部科学技术研究重点 ( 0 10 41),江苏省高校自然科学基金 ( 0 2KJB5 2 0 0 0 3 ),江苏大学青年科学基金 ( 12 41170 0 0 5 )资助
摘    要:为了满足实时协同编辑对快速响应、无约束协作的要求,提出了一种基于相对位置的乐观锁机制并发控制算法.该算法引入了编辑锁和读锁,并对加锁的起始位置和编辑操作位置用相对位置表示,当锁申请成功将写进锁表或者操作发送到各协作结点时,再把它们转换成绝对位置,加锁的粒度可根据编者的需要任意选择,编者在加锁请求获得确认前,可预先进行编辑操作.应用实例表明:该算法既保证了数据维护的一致性,又具有快速响应性.

关 键 词:相对位置  乐观锁机制  协同编辑  并发控制  协同系统  加锁位置  分布式系统

The Optimistic Locking Algorithm Based on Relative Position and Its Application in Collaborative Editing Systems
Mao Qirong,Wang Jinfeng,Zhan Yongzhao.The Optimistic Locking Algorithm Based on Relative Position and Its Application in Collaborative Editing Systems[J].Journal of Computer-Aided Design & Computer Graphics,2004,16(9):1307-1312.
Authors:Mao Qirong  Wang Jinfeng  Zhan Yongzhao
Abstract:In order to meet the requirement of quick responsibility and non-constraint in real-time collaborative editing systems, in this paper, we propose a novel responsive fine-grain optimistic locking concurrency controlling algorithm based on relative position for consistency maintenance in real-time distributed collaborative systems. In this algorithm, reading lock and editing lock are taken into account. The starting position of locking region and the position of editing operation are expressed in relative values, and they are not transformed into absolute positions until operations are sent to cooperative sites or locks are added into the Lock Table. Additionally, the locking granularity can be selected by editors optionally, and any coeditor can edit in advance before his/her requested lock is confirmed. This algorithm has been used in our collaborative editing system, and the experiments show that the concurrency controlling algorithm can well ensure the data consistency and quick responsibility.
Keywords:relative position  optimistic locking  concurrency controlling  real-time distributed collaborative editing system  consistency maintenance  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号