• recategorized by
4,609 views
16 16 votes
State whether the following statements are True or False with reasons for your answer:

Coroutine is just another name for a subroutine.

2 Answers

15 15 votes

True. The subroutine is a special case of a co-routine. A co-routine is a generalized form of a subroutine which is non-preemptive multitasking.

https://en.wikipedia.org/wiki/Coroutine

• edited by
3 3 votes

TRUE: A subroutine and a function are essentially the same thing, with one difference: A function returns some sort of value (usually via the stack or CPU register), while a subroutine does not. Whether subroutine or function, it is a block of executable code, having exactly one point of entry. A co-routine is also a block of executable code, and, just like a subroutine, it has one point of entry. However, it also has one or more points of re-entry.

ref: https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0ahUKEwjawbP86t3WAhWLOo8KHXxhCpsQFgg5MAM&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F24780935%2Fdifference-between-subroutine-co-routine-function-and-thread&usg=AOvVaw3yAD5Td224hZer_CQWxfAQ

Answer:
Position:
Show:

Related questions

5 5 votes
1 answers 1 answer
4.9k
4.9k views
gatecse asked May 3, 2021
4,944 views
State whether the following statements are True or False with reasons for your answer:A two pass assembler uses its machine opcode table in the first pass of assembly.
8 8 votes
1 answers 1 answer
2.9k
2.9k views
gatecse asked May 3, 2021
2,923 views
State whether the following statements are True or False with reasons for your answerA symbol declared as ‘external’ in an assembly language program is assigned an addres...
22 22 votes
2 answers 2 answers
5.2k
5.2k views
Kathleen asked Oct 5, 2014
5,232 views
State whether the following statements are True or False with reasons for your answerA subroutine cannot always be used to replace a macro in an assembly language program...
36 36 votes
4 answers 4 answers
12.5k
12.5k views
Kathleen asked Oct 5, 2014
12,496 views
Let $p$ and $q$ be propositions. Using only the Truth Table, decide whether $p \Longleftrightarrow q$ does not imply $p \to \lnot q$is True or False.