Re: Does ISR cause a preemptible thread to be swapped out
toggle quoted messageShow quoted text
Thanks Andrew P. Yes this is the behaviour I am observing. So I guess everything is as expected.
Thanks to all for responding.
- In Zephyr scheduling, after an ISR is done, can a preemptible thread be swapped out, and a higher priority thread, if ready, is allowed to run?
Yes this is guaranteed. There should always be a scheduler hook when coming out of a non-nested peripheral interrupt and if any higher priority thread(s) are runnable, the kernel will context switch to the highest one if the current thread
is preemptible. Feel free to file a bug if you are not seeing this to be the case.
Join email@example.com to automatically receive all group messages.