RTOS : Disabling the task preemption

2.2k views Asked by At

I have one query related to RTOS. We are using Nucleus RTOS. But my query is Generic. Suppose if a task is executing and if it's preemption is disabled, then is the task becoming atomic in nature? What i am asking here is, once the preemption of a task is disabled, can ISR routine interrupts interrupt the task? disabling the preemption of a task means, all other tasks cannot interrupt the particular task that is executing. so, can ISR in this situation can cause the interruption? and by disabling the preemption, is it a meaning of disabling the ISR aslo??

1

There are 1 answers

2
Clifford On

Disabling thread preemption does not imply the disabling of interrupt it merely means that rescheduling will not occur. If however you disable interrupts you will disable both.

The RTOS documentation should be clear on this - consult the documentation for whatever call you are using to lock the scheduler.