Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- can stack size be assigned on a per-task basis, with each task being assigned its unique stack size rather than use the global variable task_stacksize?
--- Quote End --- With uC/OS a different stack size can be specified for each task. If I remember correctly you define it runtime when you create the task. @dsl With any OS you generally are not supposed to use hardware interrupts. The task scheduler (which has its own stack) takes care of all interrupts and will wake any pending task when required. So, what application tasks actually see are OS events which emulate interrupts. For example what in a 'bare board' operation is a timer isr, in a OS environment is a task which is usually put in a sleep state and awakes only when the OS schedules it to emulate a timer interrupt. Even this timer is usually not real, but it's emulated using the OS system timer tickcount.