Per thread rusage

F

Frank

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
 
V

Victor Bazarov

Frank said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top