What happens to the time slice if you disable preemption in vxWorks?
-
01-07-2019 - |
Question
If you have round robin scheduling enabled in VxWorks, and you use taskLock() to disable preemption, what happens when your timeslice expires?
Solution
When preemption is disabled via taskLock, the timeslice counter will not increment. Your timeslice will never expire until preemption is re-enabled.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow