Is it possible to implement time-slicing in SYS/BIOS, in order to run several same-priority tasks pseudo simultaneously, without writing collaborative code ?
Thanks,
Daniel
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is it possible to implement time-slicing in SYS/BIOS, in order to run several same-priority tasks pseudo simultaneously, without writing collaborative code ?
Thanks,
Daniel
Hi Daniel,
I guess some BIOS experts will reply, but the following is my own trivial idea...
Can we dynamically raise and lower priority of a task among the task group in a round-robin fashion?
For example, we create an SWI or an HWI which periodically runs and it assigns dynamic priorities among the tasks. I don't know if it actually works but I want to try when I have time.
Best Regards,
Atsushi
Daniel,
The "slice" example shown in section the 3.5.6 of the BIOS User's Guide would be a good place for you to start:
http://www.ti.com/lit/pdf/spruex3
With the addition of a call to Task_self() and a switch() statement within the clockHandler1() function you could conditionally call Task_yield() based on the slice duration you want to give to each task.
Alan