If enough RAM were allocated, could two different tasks be allocated |
to the same stack ?? Obviously, not at the same time.. Say I want
one type of interrupt set up while I am in "demo mode". When I exit
demo mode, I don't need that interrupt anymore, so could I use it for
my next interrupt ??? Something like this: Call Task, "A_Task", A_Stack
- do something until interrupt (A_Task will exit Loop)
'Don't need A_Task anymore...
Call Task, "C_Task", A_Stack 'Now put C_Task where A_Task was
Call Task, "B_Task", B_Stack
- do something else
Anybody try this before ?? Should work - right ???
Thanks in advance for any ideas or suggestions,
Call Task & RAM conservation
--- In , "Thad Larson" <highwayman_33402@y...> |
> If enough RAM were allocated, could two different tasks be
> allocated to the same stack ?? Obviously, not at the same time..
As long as the tasks are never active at the same time it should work
fine. Just to be clear, one task has to run to completion before the
next one can start.
The concept is the same as sharing a character array between two
tasks/routines whose use of the array is mutually exclusive.