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

继承异常的分析与解决
引用本文:傅建明,张黔,朱福喜.继承异常的分析与解决[J].小型微型计算机系统,2000,21(3):285-288.
作者姓名:傅建明  张黔  朱福喜
作者单位:1. 国家多媒体软件工程技术研究中心、教育部多媒体软件开放研究实验室,武汉,430072
2. 武汉大学计算机科学及技术学院,武汉,430072
基金项目::国家“八六三”计划支持项目
摘    要:继承异常是用来描述在并发面向对象语言中继承与并发的冲突 .为分析并解决这种冲突 ,人们做了大量的工作 ,但我们认为以前的分类是不完全的 .本文对继承异常做了系统的分析 ,并设计了一个新的同步模型 ,为每个方法增加了同步策略与同步状态控制 ,加大了并发对象的代码可重用性 .本文用实例说明了该模型 ,在很大程度上避免或减少了“继承异常”的发生 .

关 键 词:继承异常  同步策略  程序设计语言  面向对象

ANALYSIS AND SOLUTION TO INHERITANCE ANOMALY
FU Jian-ming,ZHANG Qian,ZHU Fu-xi.ANALYSIS AND SOLUTION TO INHERITANCE ANOMALY[J].Mini-micro Systems,2000,21(3):285-288.
Authors:FU Jian-ming  ZHANG Qian  ZHU Fu-xi
Abstract:The term "inheritance anomaly" was coined to describe the conflict between inheritance and concurrency in the concurrent object oriented languages. Although intensive efforts have been made to analyze and slove this conflict, we consider that the previous categorizations are incomplete. In this paper, we perform a systematic analysis of the inheritance anomaly and derive a new classification of it. We have proposed a kind of compositional synchronisation control model, it attaches the synchronisation strategy and synchronisation state control with each method and enhances the reusability for the code of the concurrent object. We use several examples to illustrate that this model avoid or decrease the occurrence of "inheritance anomaly" to a great extend.
Keywords:Inheritance anomaly  Synchronisation strategy  Synchronisation state  Concurrent object  oriented programming
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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