共 21 条
Iterative computations with ordered read-write locks
被引:10
|作者:
Clauss, Pierre-Nicolas
[2
,3
]
Gustedt, Jens
[1
,2
]
机构:
[1] INRIA Nancy Grand Est, F-54506 Vandoeuvre Les Nancy, France
[2] INRIA Project Team AlGorille, Nancy, France
[3] Nancy Univ, Nancy, France
关键词:
Synchronization;
Iterative algorithms;
Read-write locks;
PARALLEL ALGORITHMS;
SHARED-MEMORY;
D O I:
10.1016/j.jpdc.2009.09.002
中图分类号:
TP301 [理论、方法];
学科分类号:
081202 ;
摘要:
We introduce the framework of ordered read-write locks, ORWL, that are characterized by two main features: a strict FIFO policy for access, and the attribution of access to lock-handles instead of processes or threads. These two properties together allow applications to have a controlled pro-active access to resources and thereby to achieve a high degree of asynchronicity between different tasks of the same application. For the case of iterative computations with many parallel tasks which access their resources in a cyclic pattern, we provide a generic technique to implement them by means of ORWL. We show that the possible execution patterns for such a system correspond to a combinatorial lattice structure and that this lattice is finite if and only if the configuration contains a potential deadlock. In addition, we provide efficient algorithms: one that allows for a deadlock-free initialization of such a system and another one for the detection of deadlocks in an already initialized system. (C) 2009 Elsevier Inc. All rights reserved.
引用
收藏
页码:496 / 504
页数:9
相关论文