协程与子例程一样,协程(coroutine)也是一种程序组件。相对子例程而言,协程更为一般和灵活,但在实践中使用没有子例程那样广泛。协程源自 Simula 和 Modula-2 语言,但也有其他语言支持。
其亮点在于其设计遵循小型、简单、易用的原则,同时可支持任务(tasks)和协程(co-routines)以及队列、二进制信号量、计数信号量、递归信号量和互斥量等,可用于任务之间、任务和中断之间的通信和同步。
基于6个网页-相关网页
半协程 Semi-Coroutine
音频工程协会 Audio Engineering Society ; AES
美国汽车工程师协会 SAE ; Society of Automotive Engineers ; SAE International
电气和电子工程师协会 IEEE ; Institute of Electrical and Electronics Engineers
协同程序 coroutine
电气工程师协会 Institution of Electrical Engineers ; IEE
协会章程 association charter ; Association Constitution ; articles of association ; Bylaw
结构工程师协会 Institution of Structural Engineers ; Structural Engineers Association of California
课程协调人 coordinator
我不知道是否有机会将协程纳入真正的JVM版本中,但对那些需要协程或threadlet的语言来说这点很有帮助。
I don't know if there's any chance of this getting into a real JVM release, but it would be greatly appreciated by any languages that need coroutines or threadlets.InfoQ Any big plans for 1.6?
传入一个动作,函数,方法或协程。
采用一个具有协变形式的朗之万方程组来描述不对称热核裂变。
A three-dimensional Langevin equation with covariant form is applied to describe the asymmetric nuclear fission.
应用推荐