thread accounting in libpthread
Kazuaki Oda
kaakun at highway.ne.jp
Thu Feb 17 08:23:23 PST 2005
Hi,
thr_accounting function (libpthread/thread/thr_kern.c) calculates
thread->slice_usec, and it uses tm_uticks, tm_sticks and _clock_res_usec.
I think that kernel counts up tm_uticks and tm_sticks at statclock interrupt
time, and on -CURRENT _clock_res_usec is 1000 and on 5-STABLE it is 10000.
Does thr_accounting calculate thread->slice_usec correctly?
--------------------
Kazuaki Oda
More information about the freebsd-threads
mailing list