Daniel Ramsbrock
2005-09-15 21:21:11 UTC
From the description: "Finally, priority is the priority number of the
process, with respect to scheduling. You can get this information from
the Kernel_Thread and User_Context structs, though you may need to
augment them."
There is a kthread->priority field, which contains an integer. Can we
just use that field as it is? The above seems to imply that we need to
do some sort of processing/additional bookkeeping to get the proper
number. In the example I only see 1 and 2, whereas the kthread->priority
field has values ranging from 0 to 5 (the values I have seen so far are:
0, 1, and 5).
Thank you,
Daniel
process, with respect to scheduling. You can get this information from
the Kernel_Thread and User_Context structs, though you may need to
augment them."
There is a kthread->priority field, which contains an integer. Can we
just use that field as it is? The above seems to imply that we need to
do some sort of processing/additional bookkeeping to get the proper
number. In the example I only see 1 and 2, whereas the kthread->priority
field has values ranging from 0 to 5 (the values I have seen so far are:
0, 1, and 5).
Thank you,
Daniel