This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX Tiny - Interrupt Handling

Hello, I am programmin a Cygnal C8051F040 in C with RTX-51 Tiny.

I have a task structure with 5 tasks. The tasks are started step by step, so task 1 sets task 2 "READY", task2 sets task 3 "READY", and so on.
With a frequency of 1 Hz is an ext. IRQ comming. In the ISR of the ext. IRQ the task 1 is set in the "READY-State".

What happens when task 5 is running, then comes an ext. IRQ (and so Task 1 is set to the "READY-State") and after the tasks 1-4 have finished the task 5 is set "READY" again.
Will task 5 start at the position where he was interrupted or will he start at the beginning again ?


Thanks,
for your help.

Parents Reply Children
No data