By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

Per thread rusage

P: n/a
Hi,

I got a test script with thread. Pretty much the basic stuff. Each
threat runs the same subroutine. At the beginning and end in the
subroutine I call getrusage to get the usage. But I can get only the
information for the whole processes and not particular to 1 thread. Is
it possible to get the rusage per thread? (the threads are pthreads, so
there should not be any specific OS issues)

Thanks in advanced,

Frank de Bot
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Frank wrote:
I got a test script with thread. Pretty much the basic stuff. Each
threat runs the same subroutine. At the beginning and end in the
subroutine I call getrusage to get the usage. But I can get only the
information for the whole processes and not particular to 1 thread. Is
it possible to get the rusage per thread? (the threads are pthreads, so
there should not be any specific OS issues)


pthreads or any other threads, they _are_ OS-specific (since there are
OSes without threading support). Please ask in the newsgroup that
deals with your OS, or in comp.programming.threads. C++ has no specific
thread support, and it has no function 'getrusage', so your question is
off-topic here. Sorry.

Victor
Jul 22 '05 #2

P: n/a
"Frank" <pp********@like.spam_searchy.net> wrote in message
news:41***********************@news.xs4all.nl...
Hi,

Each threat runs the same subroutine.


Can I quote you on that?

-Mike
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.