Dear all,
I am facing a problem that I wish to run two tasks concurrently, these tasks can run endlessly or at least take a long time to finish. It is also noted that it is hard to break down the tasks into smaller parts
As discussed in here
http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/112/t/11808.aspx
DSP/BIOS behaves differently from other common OS e.g., Linux with fair time-sharing among tasks (threads). On DSPBIOS, the task of the highest priority will take the CPU until its end, and if there are more than one tasks of the same priority, one of them will seize the CPU for it whole life cycle(till it turns into blocked or ready states)
The question is how can I have two task running simultaneously as in the Linux. One solution (I have not verified) is that I would create a timer interrupt to generate CPU time slices, and in the timer interrupt routine, I will set the priorities of the two tasks up and down to switch the CPU to these task alternatively,
Could you please comment or give me some advice on my problem? I would appreciate it much,
Nguyen Anh Duc