Welcome!
To use the personalized features of this site, please log in or register.
If you have forgotten your username or password, we can help.
|
 |
A Concurrency Abstraction Model for Avoiding Inheritance Anomaly in Object-Oriented Programs
| |
|
4. A Concurrency Abstraction Model for Avoiding Inheritance Anomaly in Object-Oriented Programs
Sandeep Kumar6 and Dharma P. Agrawal7
| (6) |
Hewlett-Packard Laboratories, One Main Street, 10th Floor, Cambridge, MA, 02142 |
| (7) |
Department of ECECS, ML 0030, University of Cincinnati, PO Box 210030, Cincinnati, OH, 45221-0030 |
Summary
In a concurrent object-oriented programming language one would like to be able to inherit behavior and realize synchronization
control without compromising the flexibility of either the inheritance mechanism or the synchronization mechanism. A problem
called the inheritance anomaly arises when synchronization constraints are implemented within the methods of a class and an attempt is made to specialize
methods through inheritance. The anomaly occurs when a subclass violates the synchronization constraints assumed by the superclass.
A subclass should have the flexibility to add methods, add instance variables, and redefine inherited methods. Ideally, all
the methods of a superclass should be reusable. However, if the synchronization constraints are defined by the superclass
in a manner prohibiting incremental modification through inheritance, they cannot be reused, and must be reimplemented to
reflect the new constraints; hence, inheritance is rendered useless. We have proposed a novel model of concurrency abstraction,
where (a) the specification of the synchronization code is kept separate from the method bodies, and (b) the sequential and
concurrent parts in the method bodies of a superclass are inherited by its subclasses in an orthogonal manner.
Fulltext Preview (Small, Large)
 References secured to subscribers.
|
|
|
|
|
|