Search code examples
vxworks

What happens to the time slice if you disable preemption in vxWorks?


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.