一种面向分布式系统的程序设计模式  被引量:1

A Programming Pattern for Distributed Systems

在线阅读下载全文

作  者:李慧霸[1] 彭宇行[1] 卢锡城[1] 

机构地区:[1]并行与分布处理国家重点实验室,湖南长沙410073

出  处:《计算机工程与科学》2008年第12期142-145,共4页Computer Engineering & Science

基  金:国家973计划资助项目(2005CB321800)

摘  要:分布式系统的程序设计模式主要包括多线程模式和事件驱动模式,其中事件驱动模式占据了主导地位。本文讨论了这两种模式的不足,以及Coroutine模式相对它们的优点,并认为Coroutine模式是最适合分布式系统的程序设计模式。本文在此基础上提出了Libresync,它是一个基于Coroutine模式的分布式系统基础支持库。它既能给应用开发带来非常清晰的控制流程,又具有很高的灵活性和表达力,性能也能满足大多数需求。Programming patterns for distributed systems mainly includes multi-threaded and event-driven patterns, and the event-driven pattern is the major one. This paper, however, discusses their disadvantages, and the Coroutine pattern's advantages over them. We think Coroutine is the most suitable pattern for distributed system programming. And we present Libresyne, a Coroutine-based supporting library for distributed systems, which brings us clear control flow, high flexibility and expressiveness. The performance of Libresync is also reasonably good enough for most purposes.

关 键 词:分布式系统 并发 多线程 事件驱动 Coroutine 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象