chapter  3
10 Time-Slice
Pages 3

The length of time (i.e., number of timer-ticks) for which a thread executes before relinquishing the processor is called its

time-slice

. When a thread’s (optional) time-slice expires in ThreadX, all other threads of the same or higher priority levels are given a chance to execute before the time-sliced thread executes again. Time-slicing provides another form of round-robin scheduling. ThreadX provides optional time-slicing on a per-thread basis. The thread’s time-slice is assigned during creation and can be modified during execution. If the time-slice is too short, then the scheduler will waste too much processing time performing context switches. However, if the time-slice is too long then threads might not receive the attention they need.