why a task cannot return a valueif tasks can


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.

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: why a task cannot return a valueif tasks can
Reference No:- TGS0356008

Expected delivery within 24 Hours