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)) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:16 EST