首页 | 本学科首页   官方微博 | 高级检索  
     检索      

一种低成本的C语言协程实现
引用本文:李中跃.一种低成本的C语言协程实现[J].辽宁省交通高等专科学校学报,2012,14(4):23-26.
作者姓名:李中跃
作者单位:辽宁省交通高等专科学校,辽宁沈阳,110122
摘    要:本文介绍了C语言中一种新的协程编程模型,即利用Timer驱动有限状态机方式,有效地解决了传统C语言协程实现的兼容性和跨平台等问题,提供了C语言下并行编程除线程之外的另一种选择。

关 键 词:C语言  协程  Timer驱动  有限状态机

A low-cost C-Language Coroutine Implementation
LI Zhong-yue.A low-cost C-Language Coroutine Implementation[J].Journal of Liaoning Provincial College of Communications,2012,14(4):23-26.
Authors:LI Zhong-yue
Institution:LI Zhong-yue
Abstract: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.
Keywords:C-Language  Coroutine  Timer-driven  Finite State Machine
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号