Forum Discussion
Altera_Forum
Honored Contributor
14 years agoNiche Stack Switching Tasks
Hi Guys, I've been working with the simple socket server example. One thing has been stumping me, i can't exactly see how the tasks relenquish control. The http://www.altera.com/literatu...
Altera_Forum
Honored Contributor
14 years agoThe scheduler is responsible for this. The one is ucOS is rather simple and just uses priorities. Just create two tasks, and when the one with the highest priority goes to sleep or waits on an I/O (including network), the one with the lower priority will run.