Forum Discussion
Altera_Forum
Honored Contributor
13 years agoWell, "simultaneously" is not possible.
If you want round-robin scheduling ("timeslicing"), it is not available in version II of this RTOS, but it is available in version III. The snippet you posted looks like a simple polling loop. If you are simply saying you have many of such polling loops, just use one task and execute the polling loops one after the other. e.g. while(1) { poll_blockA(); poll_blockB(); poll_blockC(); } Other than that, you are left to crafting your own application level scheduling using e.g. mutex or messages to get your polling to happen in the order you would like. Or, you could start using interrupts and only run your polling when your inputs change, for example.