[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: timing pthreads ...



On Wed, Nov 22, 2000 at 02:15:56PM +0530, Saravanan Subbiah wrote:
> Hi all,
> 
> How can I find how long a ptheard has been running exactly ? 
> Something similar to getrusage() ? (which gives the time a 
> process spent running in user space and in kernel space)

I don't remember see'ing anything in the pthread spec on this,
but because Linux maps pthreads -> kernel processes 1:1, you
might be able to get away with getrusage.

	-Arun