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


Concurrency control issues in nested transactions
Authors:Theo Härder Ph.D.  Kurt Rothermel Ph.D.
Affiliation:(1) University of Kaiserslautern, D-6750 Kaiserslautern, Germany;(2) University of Stuttgart, D-7000 Stuttgart 80, Germany
Abstract:The concept of nested transactions offers more decomposable execution units and finer-grained control over concurrency and recovery than ldquoflatrdquo transactions. Furthermore, it supports the decomposition of a ldquounit of workrdquo into subtasks and their appropriate distribution in a computer system as a prerequisite of intratransaction parallelism. However, to exploit its full potential, suitable granules of concurrency control as well as access modes for shared data are necessary. In this article, we investigate various issues of concurrency control for nested transactions. First, the mechanisms for cooperation and communication within nested transactions should not impede parallel execution of transactions among parent and children or among siblings. Therefore, a model for nested transactions is proposed allowing for effective exploitation of intra-transaction parallelism. Starting with a set of basic locking rules, we introduce the concept of ldquodownward inheritance of locksrdquo to make data manipulated by a parent available to its children. To support supervised and restricted access, this concept is refined to ldquocontrolled downward inheritance.rdquo The initial concurrency control scheme was based on S-X locks for ldquoflat,rdquo non-overlapping data objects. In order to adjust this scheme for practical applications, a set of concurrency control rules is derived for generalized lock modes described by a compatibility matrix. Also, these rules are combined with a hierarchical locking scheme to improve selective access to data granules of varying sizes. After having tied together both types of hierarchies (transaction and object), it can be shown how ldquocontrolled downward inheritancerdquo for hierarchical objects is achieved in nested transactions. Finally, problems of deadlock detection and resolution in nested transactions are considered.
Keywords:Nested transactions  concurrency control  locking  object hierarchies
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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