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

计算机工程 ›› 2009, Vol. 35 ›› Issue (24): 87-89. doi: 10.3969/j.issn.1000-3428.2009.24.029

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

基于C#语言的事务内存系统

孙 勇   

  1. (浙江交通职业技术学院信息学院,杭州 311112)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-12-20 发布日期:2009-12-20

Transactional Memory System Based on C# Language

SUN Yong   

  1. (College of Information Technology, Zhejiang Institute of Communications, Hangzhou 311112)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-12-20 Published:2009-12-20

摘要: 事务内存是一种新的易于使用的同步技术,能使多线程程序高效地并行执行,目前大多数事务内存系统都处于研究实验阶段,尚未具备实际应用价值,或需要依赖特殊硬件实现。针对该现状,提出一种利用C#语言设计与实现的纯软件的事务内存系统,包括事务对象定义以及对事务对象的并行访问方法,并给出处理事务冲突的策略。实验结果表明,该系统是一种高效简洁的同步实现机制。

关键词: C#语言, 事务内存, 事务对象, 冲突, 竞争管理

Abstract: Transactional memory is a novel easy-to-use synchronization technology, it simplifies the development of multi-threaded applications. Most transactional memory systems are not applicable and dependent on special hardware currently. This paper proposes a transactional memory system based on C# language aiming at this situation. The system mainly consists of definition of transactional object and its parallel access method, contention management of transaction is also given. Experimental results show that this system is simple and effective synchronization implement mechanism.

Key words: C# language, transactional memory, transactional object, conflict, competition management

中图分类号: