Why a task cannot return a value, Computer Engineering

Why a task cannot return a value?

If tasks can return values then Let's take a look at the below example.

A=f1(B)+f2(C);

and f1 and f2 had delays of say 5 and 10? When would B and C be sampled, or globals inside f1 and f2 be sampled? How long does then entire statement block? This is going to put programmers in a bad situation. So languages gurus made those tasks can't return.

 

 

Posted Date: 9/16/2013 3:35:22 AM | Location : United States







Related Discussions:- Why a task cannot return a value, Assignment Help, Ask Question on Why a task cannot return a value, Get Answer, Expert's Help, Why a task cannot return a value Discussions

Write discussion on Why a task cannot return a value
Your posts are moderated
Related Questions
Explain SPC. Also discuss the different modes of Centralized SPC In stored program control systems, set of instructions or a program to the computer is stored into its memory a

Which techniques are utilized to gain on the number pairs and also explain how it helps in connecting number of subscribers. In rural areas, subscribers are usually dispersed.

Q. Explain working of Bit Serial Associative Processor? When associative processor accepts bit serial memory organization subsequently it is known as bit serial associative pr

Primary objectives/details of Load Sharing Facility Resource Management Software (LSFRMS) are better resource utilisation by routing task to most suitable system as well a better u

consider an open circuit pn junction.sketch curves as a function of distance across the junction of space charge ,electric field and potential

List the major components of the keyboard/Display interface. a. Keyboard section b. CPU interface section c. Display section d. Scan section

Normal 0 false false false EN-US X-NONE X-NONE

Fuzzy Logic: In the logics we are here described above, what we have been concerned with truth: whether propositions and sentences are true. Moreover, with some natural langua

how can we bimpliment half substractor using nand gate

Q. What is Memory Address Register? Memory Address Register (MAR): It specifies address of memory location from that data or instruction is to be accessed (read operation) or t