Kernel thread scheduling
Vincenzo Scotti
vinc94 at gmail.com
Sun Mar 22 19:14:49 EDT 2015
Thank you for the example.
I understand what are the scheduling mechanics depending on task->state.
But suppose another situation.
Let's say I change current state to TASK_INTERRUPTIBLE. If I start now some long
operation, then shouldn't the scheduler kick in as soon as he can and put my thread
asleep? Or should I call necessarily schedule()? And if so, why?
More information about the Kernelnewbies
mailing list