Friday, January 13, 2012

Timeslice & Timeslice Termination

Timeslice
In a multitasking environment, if more than one task having same priority will be executed simultaneously in a short interval of time. This is called Time slice. 

Timeslice Termination
A task needs to voluntarily give up control of the CPU so that another task at the same priority can execute, that is, terminate the current timeslice. This is achieved with the functions:
void task_reschedule (void);
void task_yield (void);

No comments:

Post a Comment