期刊文献+

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

A Programming Pattern for Distributed Systems
下载PDF
导出
摘要 分布式系统的程序设计模式主要包括多线程模式和事件驱动模式,其中事件驱动模式占据了主导地位。本文讨论了这两种模式的不足,以及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.
出处 《计算机工程与科学》 CSCD 2008年第12期142-145,共4页 Computer Engineering & Science
基金 国家973计划资助项目(2005CB321800)
关键词 分布式系统 并发 多线程 事件驱动 Coroutine distributed system concurrency multi-threaded event-driven Coroutine
  • 相关文献

参考文献10

  • 1Raymond E S. The Art Of Unix Programming[M]. Addison-Wesley, 2003.
  • 2Killian C, Anderson J W, Braud R, et al. Mace: Language Support for Building Distributed Systems[C]//Proc of Programming Languages Design and Implementation, 2007.
  • 3Ousterhout J K. Why Threads Are a Bad Idea (for Most Purposes)[C]//Proc of the USENIX Annual Technical Conf, 1996.
  • 4Adya A, Howell J, Theimer M, et al. Cooperative Task Management without Manual Stack Management[C] //Proc of the USENIX Annual Technical Conf, 2002.
  • 5von Behren R, Condit J,Brewer E. Why Events Are a Bad Idea (for High-Concurrency Servers[C]//Proc of HotOS'03, 2003.
  • 6von Behren R, Condit J, Zhou F, et al. Capriccio: Scalable Threads for Internet Services [C]// Proc of the 19th Int'l Symp on Operating Systems, 2003.
  • 7Cunningham R,Kohler E. Making Events Less Slippery with eel[C]//Proc of HotOS'05, 2005.
  • 8Krohn M, Kohler E,Frans K M. Events Can Make Sense[C] //Proc of the USENIX Annual Technical Conf, 2007.
  • 9Lauer H C,Needham R M. On the Duality of Operating System Structures[C]//Proc of the 2nd Int'l Symp on Operating Systems, 1978.
  • 10The Boost Library[DB/OL]. [2007-12-10]. http://www. boost. org.

同被引文献1

  • 1[英]马修,(英)斯通斯编著,陈健,宋健建翻译.Linux程序设计[M].北京:人民邮电出版社,2010.

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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