* Thread accounting
@ 2002-11-27 2:21 J.A. Magallon
0 siblings, 0 replies; only message in thread
From: J.A. Magallon @ 2002-11-27 2:21 UTC (permalink / raw)
To: Lista Linux-Kernel
Hi al...
Since a discussion time ago, I know that accounting for threads is
broken in linux: getrusage does not give any info on children.
So I decided to do it by hand in my userspace app: each thread
tries to accout for itself, and parent sums up. But it looks like
getrusage called from a thread still gives the useless info about
the parent !!! Is this correct ? Any way to get accounting for a
thread itself, from the thread itself ?
(everytime I said thread, I meant _POSIX_ tread)
I am interested mainly in cpu (user/sys) accounting...
TIA
--
J.A. Magallon <jamagallon@able.es> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.1 (Cooker) for i586
Linux 2.4.20-rc4-jam0 (gcc 3.2 (Mandrake Linux 9.1 3.2-4mdk))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-27 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-27 2:21 Thread accounting J.A. Magallon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®