期刊文献+

一种基于语法扩展的自动互斥锁实现机制

Implementation of grammar extemsion based automatic mutex
原文传递
导出
摘要 针对多道程序开发过程中存在的互斥锁标准不统一、使用复杂、易造成死锁等不足,提出扩展C/C++标准语法,增加临界资源定义及操作关键字的方案,通过隐藏互斥锁的概念及实现从而降低开发复杂度、实现平台无关.在扩展语法基础上,提出采用分支栈检查算法在代码进行临界资源访问顺序合法化及配对完整性检查,可有效地减少死锁隐患、增强系统的可靠性. To aim at the situation that in multiprogramming environment, the use of mutex has such disadvantages as different standards, complex rules, prone to deadlock, a new method is proposed which extends the C + + standard grammar to incorporate in some critical resource define and access key words. Through hiding the concept and implementation of mutex, the development complexity is reduced and the programming is OS independent. Based on the grammar extension, the branched-stack algorithm is proposed to conduct critical resource access sequence and match integrity checking in code. As a result, hidden troubles brought by deadlock will decreased and reliability will enhanced effectively.
出处 《四川大学学报(自然科学版)》 CAS CSCD 北大核心 2008年第3期503-506,共4页 Journal of Sichuan University(Natural Science Edition)
基金 国家重大技术装备创新项目(2002-565-6)
关键词 语法扩展 互斥锁 临界资源 有限自动机 死锁检测 grammar extension, mutex, critical resource, DFA, deadlock checking
  • 相关文献

参考文献2

  • 1郑莉,董渊.C++语言程序设计[M].北京:清华大学出版社,2003.
  • 2Knapp E. Deadlock detection in distributed databases [J]. ACM Computing Surveys, 1987, 19(4) : 303.

共引文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部