Computer Science - Computer Fundamentals - Discussion
Discussion Forum : Computer Fundamentals - Section 1 (Q.No. 18)
18.
A program component that allows structuring of a program in an unusual way is known as
Discussion:
12 comments Page 1 of 2.
Shewangizaw Bogale said:
9 years ago
A program component that allows structuring of a program in an usual way is known as Subroutine, it is an unusual way so its co-routine.
Co-routines are well-suited for implementing more familiar program components such as cooperative tasks, iterators, infinite lists and pipes.
Thanks All.
Co-routines are well-suited for implementing more familiar program components such as cooperative tasks, iterators, infinite lists and pipes.
Thanks All.
(3)
Gayatree said:
7 years ago
What is Quene? Please explain me.
(1)
Jayashree said:
1 decade ago
Coroutines are computer program components that generalize subroutines to allow multiple entry points for suspending and resuming execution at certain locations. Coroutines are well-suited for implementing more familiar program components such as cooperative tasks, iterators, infinite lists and pipes.
Piyush said:
1 decade ago
What is the main purpose of coroutines?
Mohan said:
1 decade ago
What is meant by correlation?
Anil said:
1 decade ago
What is coroutine?
Vimal said:
1 decade ago
What is this, beyond my limits, any intelligent girl can explain that question?
Dhara said:
1 decade ago
Coroutines are well-suited for implementing more familiar program components such as cooperative tasks, exceptions, event loop, iterators, infinite lists and pipes.
Sab said:
1 decade ago
A program component that allows structuring of a program in an usual way is known as Subroutine, it is unusual way so its co-routine.
Navya said:
1 decade ago
An ideal subroutine is a mathematical function; it takes inputs and returns the results of its computation. It has a single entry point and all data local to it is initialized upon entry and cleaned up when it returns to the caller. The next call, if any, starts all over again and no local residues are carried over from the last invocation.
A coroutine, is an interesting deviation from these conventions. It can yield control back to the caller as soon as there are partial results that can be put to use. Moreover, when invoked again, it can resume the computation from where it left. These yield/resume semantics make coroutines a better unit of structuring programs for certain types of problems.
A coroutine, is an interesting deviation from these conventions. It can yield control back to the caller as soon as there are partial results that can be put to use. Moreover, when invoked again, it can resume the computation from where it left. These yield/resume semantics make coroutines a better unit of structuring programs for certain types of problems.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers