GrandAlf
Advanced Member level 2
Assuming that you have a main task and a second task thus.
main task 0
start task 1
do something
time delay 20 ticks
Task 1
x=getkey or some loop waiting for input
time delay 5 ticks
Now the question is, in task1 as it is in effect in a loop waiting for input, it may never get to the delay tick routine. Does this mean that it is switched in every 5 ticks, or in fact only when it gets an input. Or indeed is it switched at the rtos default setting, and the 5 ticks has no effect until reached. Not really sure about the mechanics of operation. anyone clued up on this?
main task 0
start task 1
do something
time delay 20 ticks
Task 1
x=getkey or some loop waiting for input
time delay 5 ticks
Now the question is, in task1 as it is in effect in a loop waiting for input, it may never get to the delay tick routine. Does this mean that it is switched in every 5 ticks, or in fact only when it gets an input. Or indeed is it switched at the rtos default setting, and the 5 ticks has no effect until reached. Not really sure about the mechanics of operation. anyone clued up on this?