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.%本文介绍了C语言中一种新的协程编程模型,即利用Timer驱动有限状态机方式,有效地解决了传统C语言协程实现的兼容性和跨平台等问题,提供了C语言下并行编程除线程之外的另一种选择。
展开▼