摘要
1 引言继承机制是面向对象软件开发中的重要设施,是实现软件复用和扩充的一种有效的语言机制,它是顺序面向对象语言的一个基本特点。但是,在将面向对象技术与并发相结合的过程中,对并发控制机制处理不当,将会引起继承机制与并发控制间的冲突问题。这种冲突主要表现在:定义子类时需要修改(重定义)父类中的所有代码才能实现自身的并发控制,从而使得子类无法继承父类的代码,产生继承异常现象、继承异常的出现将进一步破坏面向对象技术的两大优点,即:继承和封装。所以,如何有效地避免继承异常或将继承异常的产生降低到最小的程度是并发面向对象模型所要研究的一个重要问题。
Inheritance anomaly is an important and difficult problem in the process of combining concurrency with object-oriented technology. There are many researches on it recently. Among them,a proposal by Satoshi Matsuoka and Akinori Yonezawa integrated the advantages of message sets and guarded method, which provides a good method for solving the inheritance anomaly,but there are some drawbacks when solving the history-sensitive anomaly. In this paper,based on the state machine,we developed the proposal and proposed a method for solving inheritance anomaly based on history-state to deal with the history-sensitive inheritance anomaly better.
出处
《计算机科学》
CSCD
北大核心
2000年第3期51-54,共4页
Computer Science
关键词
继承异常
面向对象
软件开发
继承机制
Concurrent object-oriented, Inheritance anomaly, Concurrency constraint, History-state,State machine