期刊文献+

一种低成本的C语言协程实现 被引量:1

A low-cost C-Language Coroutine Implementation
下载PDF
导出
摘要 本文介绍了C语言中一种新的协程编程模型,即利用Timer驱动有限状态机方式,有效地解决了传统C语言协程实现的兼容性和跨平台等问题,提供了C语言下并行编程除线程之外的另一种选择。 This article describes a new coroutine programming model with C-Language. That is Timer- driven Finite State Machine, which can effectively solve the compatibility and cross-platform issue of traditional coroutine implementation with C-Language. The new method gives another option of parallel programming in C-Language outside of the thread.
作者 李中跃
出处 《辽宁省交通高等专科学校学报》 2012年第4期23-26,共4页 Journal of Liaoning Provincial College of Communications
关键词 C语言 协程 Timer驱动 有限状态机 C-Language, Coroutine, Timer-driven, Finite State Machine
  • 相关文献

参考文献2

二级参考文献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.

同被引文献4

引证文献1

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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