共 50 条
An efficient and flexible C++ library for concurrent programming
被引:0
|作者:
Poggi, A
[1
]
Rimassa, G
[1
]
机构:
[1] Univ Parma, Dipartimento Ingn Informaz, I-43100 Parma, Italy
来源:
关键词:
concurrent object-oriented programming languages;
interference between inheritance and concurrency;
C++;
software reuse;
D O I:
10.1002/(SICI)1097-024X(1998110)28:13<1437::AID-SPE210>3.0.CO;2-O
中图分类号:
TP31 [计算机软件];
学科分类号:
081202 ;
0835 ;
摘要:
A major problem for the integration of concurrency in object-oriented languages is the so-called inheritance anomaly, i.e. the conflicts between inheritance and concurrency that often cause the need to redefine inherited methods in order to maintain the integrity of objects. Several solutions have been proposed for resolving these conflicts. However, some of them are incomplete, and do not solve all types of inheritance anomaly; others make the definition of classes complex and/or their implementation inefficient. This paper describes a C++ library for concurrent programming that provides a comprehensive framework particularly suitable for coarse-grained distributed applications. This library copes with the inheritance anomaly problem, presenting a solution that minimizes the redefinition of inherited methods without increasing the complexity to write them. This solution is based on the use of a special set of methods, called interface methods, composed of a body and two sets of synchronization constraints. These two sets of synchronization constraints are respectively used to enable the execution of their method body and to disable the methods that cannot be executed after their method. (C) 1998 John Wiley & Sons, Ltd.
引用
收藏
页码:1437 / 1463
页数:27
相关论文