Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-19-2004, 09:50 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Vietnam
Posts: 9

Rep: Reputation: 0
How to get timing information for a thread

On Linux, how can I retrieve timing information for a thread (creation time, exit time, kernel time, user time). I have checked the proc file system and pthread library functions but I found nothing.

Any help will be highly appreciated.

Luu Vo.
Old 04-19-2004, 10:41 PM   #2
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Try the top command.
Old 04-20-2004, 06:18 AM   #3
LQ Newbie
Registered: Mar 2004
Location: Vietnam
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your suggestion. The top command provides information about processes and CPU usage. But I want library functions (or mechanism) to get timing information about a thread in my C program, something just like GetThreadTimes() function on Windows platform.

I have done a lot of searches from search engines but no solutions found.

Do you have any idea?

Thanks and regards,

Luu Vo.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 10:15 AM
re : News: Useful thread and information about installing programs. AcerKev Linux - General 0 07-06-2004 03:55 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-08-2004 12:11 AM
Useful thread and information about installing programs. trickykid Linux - General 1 05-20-2003 05:39 PM
Useful thread and information about UNINSTALLING programs. BeFalou Linux - General 2 02-13-2003 06:41 PM

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration