Discussion:
Priority numbers
(too old to reply)
Daniel Ramsbrock
2005-09-15 21:21:11 UTC
Permalink
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
Iulian Neamtiu
2005-09-17 04:37:38 UTC
Permalink
Yes, just go ahead and use Kernel_Thread->priority verbatim.
PRIORITY_HIGH (10) and PRIORITY_LOW (2) don't seem to be used anywhere
in the kernel so 0/1/5 make sense.

Iulian
Post by Daniel Ramsbrock
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
0, 1, and 5).
Thank you,
Daniel
Loading...