coroutines
基本解釋
- n.協(xié)同程序
英漢例句
- Coroutines have a different syntax in C#.
使用C%23實(shí)現(xiàn)協(xié)同,在語(yǔ)法上會(huì)有一處不同。 - If your program creates and frees too many coroutines, recycling may be an option to improve its performance.
如果你的程序創(chuàng)建和釋放太多的協(xié)程,再循環(huán)或許是個(gè)提升性能的選擇。 - Coroutines can save processor overhead and reduce redundancy because they allow you to stop execution of a procedure midstream, return a value, and resume exactly where the procedure left off.
協(xié)同例程允許用戶中途停止程序執(zhí)行,返回一個(gè)值,并準(zhǔn)確地在過(guò)程停止的位置恢復(fù)操作,從而能夠節(jié)省處理器系統(tǒng)開(kāi)銷,降低冗余。 - Similarly, C offers only straightforward, single-thread control flow: tests, loops, grouping, and subprograms, but not multiprogramming, parallel operations, synchronization, or coroutines.
類似地,C只提供單線程的控制流:測(cè)試、循環(huán)、組合和子程序。它不提供多道程序設(shè)計(jì)、并行操作、同步和協(xié)同例程。 - The current API for coroutines does not offer direct support for reusing a coroutine, but we can circumvent this limitation.
當(dāng)前的協(xié)程API并不直接支持重用協(xié)程,但是我們可繞過(guò)這個(gè)限制。