LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-05-2013, 01:07 AM   #1
shruti05
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Is there a way to track the order in which linux kernel is scheduling the threads?


Hi,

I am trying to find if I can trace the order in which my Linux kernel is scheduling my threads?
Is there a way to do this?

Thanks and Regards
Shruti
 
Old 03-05-2013, 12:50 PM   #2
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 776

Rep: Reputation: 51
I don't know about linux but I think that Procmon /Filemon do this with windows. It might be helpful to watch the action on a windows machine.
 
Old 03-06-2013, 08:33 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,278

Rep: Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088
In a word, "no." The scheduler executes thousands of times a second and may be doing so on several cores or CPUs at once. You could by some means snapshot the time consumed by each over some quantum of time, but what you'd really be doing is examining the characteristics of the workload .. the hard way.

In particular, you should never write any application that places any dependency or expectation as to the order in which threads may execute.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
thread scheduling. is it guaranteed that kernel will run threads on all cores? anilp Linux - Kernel 1 01-26-2011 02:30 PM
scheduling process threads shaiva Linux - Software 1 09-25-2009 07:38 AM
threads scheduling problem pupillo Programming 16 07-23-2009 01:10 PM
can I track threads? chemdawg LQ Suggestions & Feedback 5 10-10-2005 09:18 PM
Keeping track of my threads? une LQ Suggestions & Feedback 4 04-10-2005 10:35 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration