Forum Discussion
Altera_Forum
Honored Contributor
12 years agoTasks priorities in NicheStack
Hi there, I have a problem with task priorities using the NicheStack. My app task has priority 4 and the TCP tasks start at priority 5. The app task is basically a for(;;) loop which write...
Altera_Forum
Honored Contributor
12 years agoIIRC the interrupt routines in the TSE driver don't use that much CPU, but yes you could try polling instead and see if it changes anything. As long as you don't have a high network traffic, it should be ok.
Are you using a constant delay in OSTimeDly()? If yes you could use an alternative method:[list][*]ask for the local time when your function starts executing (T0)[*] when it is finished, ask for the time again (T1)[*]call OSTimeDly() with a dynamic delay, 500ms-(T1-T0)[/list]