While viewing the source code of sched.c, I noticed that the timeslice calculation is based on the static priority of the thread, rather than on the dynamic priority.

How is the dynamic priority of a thread reflected in the cpu time available to the thread?

Thanks!
Tomer.