Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get per thread cpu time

Status
Not open for further replies.

lewisliu

Programmer
Feb 15, 2005
2
0
0
US
Hi,
I am using pthread on AIX and need a way to record per-thread cpu time(user mode time), how can I do it inside my program? The function times() can only return process-based timing, not thread-based.
Thanks for help!
 
Hi,

Not sure if it helps but you can use the bindprocessor command to reduce the number of processors your process uses.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top