coroutine
coroutine A program component that allows structuring of a program in an unusual way. A coroutine resembles a subroutine, with one important difference. A subroutine has a subordinate position relative to the main routine: it is called and then returns. Coroutines, however, have a symmetric relation: each can call the other. Thus a coroutine is resumed at a point immediately following its call of another coroutine; it never returns, but terminates its operation by calling (resuming) another coroutine.
Coroutines are not commonly found in high-level languages. They are particularly useful as a means of modeling concurrent activity in a sequential machine.
Coroutines are not commonly found in high-level languages. They are particularly useful as a means of modeling concurrent activity in a sequential machine.
More From encyclopedia.com
C (programming Language) , C (Programming Language)
C is a high-level programming language that is used to develop many kinds of software, including applications that are used… Programming Language , In order for computers to accept commands from humans and perform tasks vital to productivity and e-commerce, a means of communication must exist. Pr… Computer Program , pro·gram / ˈprōˌgram; -grəm/ (Brit. pro·gramme) • n. 1. a planned series of future events, items, or performances: a weekly program of films the prog… subroutine , subroutine A piece of code that is obeyed “out of line”, i.e. control is transferred to the subroutine, and on its completion control reverts to the… Call , call / kôl/ • v. 1. [tr.] cry out to (someone) in order to summon them or attract their attention: she heard Terry calling her | [intr.] I distinctly… Automation , Automation is the use of scientific and technological principles in the manufacture of machines that take over work normally done by humans. This def…
You Might Also Like
NEARBY TERMS
coroutine