LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2008, 09:00 AM   #1
bluehive
LQ Newbie
 
Registered: Jan 2008
Posts: 5

Rep: Reputation: 0
Exclamation Counting thread's context switches


Hi all,
Is it possible to count the context-switches for a thread? I'm tracing an application 'A' with ptrace(). Say 'A' has n threads. I want to know how may times each thread in 'A' faced a context-switch.
Do we have any mechanism that can notify the tracing process about context-switches in traced process?

Thanks,
Bluehive
 
  


Reply


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
Counting thread's context switches bluehive Programming 2 06-15-2008 06:35 PM
Number of context switches linuxdoniv Programming 1 05-08-2008 07:50 AM
Context switches balteo Linux - General 0 09-06-2005 07:09 AM
how to get thread's pid? jackandking Programming 7 12-14-2004 06:08 AM
What are the drawbacks of syscalls and context switches? shy Programming 7 11-25-2004 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

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