作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (24): 67-68. doi: 10.3969/j.issn.1000-3428.2008.24.023

• 软件技术与数据库 • 上一篇    下一篇

基于面向方面编程的线程自主管理

张瞩熹1,2,李德彩1,王怀民2,刘 海2   

  1. (1. 总后后勤科学研究所,北京 100071;2. 国防科技大学计算机学院,长沙 410073)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-12-20 发布日期:2008-12-20

Thread Autonomic Management Based on AOP

ZHANG Zhu-xi1,2, LI De-cai1, WANG Huai-min2, LIU Hai2   

  1. (1. General Logistics Department, Logistics Research Institute, Beijing 100071;2. School of Computer Science, National University of Defense Technology, Changsha 410073)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-12-20 Published:2008-12-20

摘要: 将面向方面编程的关注点分离思想应用于线程运行的自主管理研究中,提出面向方面的线程自主管理模型,在此基础上实现通用线程自控制器(GTAC)。它能在不改变源程序的情况下织入系统内部,按照用户制定的策略,通过反射机制提供线程运行的自主管理功能。GTAC已实际应用到一个大规模高可用信息传输系统中,取得了良好的效果。

关键词: 面向方面编程, 自主管理, 线程

Abstract: This paper applies Aspect-Oriented Programming(AOP) in the research of the thread runtime management, and proposes a model of thread automatic management. Based on this model, it implements a General Thread Automatic Control(GTAC) which can wave into the system automatically without changing any source codes. Accroding to the user policy, GTAC can provide the function of thread automatic management by making use of reflection mechanism. GTAC is used in some application systems, and obtains good results.

Key words: Aspect-Oriented Programming(AOP), automatic management, thread

中图分类号: