Local Linux Scheduling
I am trying to change the scheduling algorithm so that if a thread finished executing, the scheduler will pick up a thread belonging to the same process. This is known as fair scheduling.
I have implemented my own logic my return the task_struct point from the pick_next_task in core.c but it keeps generating a kernel panic.
I have been struggling with that for more than 20 hours and no success.
Can anyone please point me to articles, tutorials, or advice that will help me in this implementation ?