Hi,
what exactly is represented by a Sched_context? 'sched_context-fixed_prio.cpp', for example, contains members called '_prio' and '_quantum'. That would suggest that a Sched_context is a schedulable object like a task or a thread. However, the file mentioned above defines some sort of ready queue, too. That would indicate that a Sched_context is some part of the scheduler that organizes the schedulable objects in a data structure?
Where are all those classes documentated? Using the search box, the official documentation (http://os.inf.tu-dresden.de/L4Re/doc/index.html) does not offer any information about these.
Best regards, Valentin Hauner
Hi,
On Fri May 30, 2014 at 13:15:09 +0200, Valentin Hauner wrote:
what exactly is represented by a Sched_context? 'sched_context-fixed_prio.cpp', for example, contains members called '_prio' and '_quantum'. That would suggest that a Sched_context is a schedulable object like a task or a thread. However, the file mentioned above defines some sort of ready queue, too. That would indicate that a Sched_context is some part of the scheduler that organizes the schedulable objects in a data structure?
A Sched_context is a class that is part of a Thread and stores scheduling-related information, such as prio and quantum. The object that is scheduled is the Thread which has a Sched_context embedded.
Where are all those classes documentated? Using the search box, the official documentation (http://os.inf.tu-dresden.de/L4Re/doc/index.html) does not offer any information about these.
This is Fiasco-internal and not covered in the L4Re reference.
Adam
l4-hackers@os.inf.tu-dresden.de