8 years, 11 months ago.

What happens to RTOS Scheduler during Interrupt Service on mbed?

I want to make a RTOS program with threads called at regular intervals and interrupt services on interrupt calls on FRDM-KL46Z. I have three threads which are called upon setting three different signals at regular time intervals. There are interrupt service calls as well. Say thread 1 is being run and interrupt is given. What happens after the interrupt service? What happens if the interrupt service sets the signal for thread 2?

1 Answer

8 years, 11 months ago.

That depends on your priority levels. If thread 2 has a higher priority it will directly switch to thread 2, if lower not until thread 1 takes a pause. If they have equal priority it will alternate between the two, but it is not as well defined.

What happens to the RTOS scheduler on ISR ?

posted by Pradeep Kotipalli 04 Jun 2015

Nothing happens to it, it is doing its interrupt.

posted by Erik - 04 Jun 2015