View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-05-2013, 02:07 AM   #1
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?


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
Old 03-05-2013, 01:50 PM   #2
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 838

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, 09:33 AM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,986

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
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.


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 03:30 PM
scheduling process threads shaiva Linux - Software 1 09-25-2009 08:38 AM
threads scheduling problem pupillo Programming 16 07-23-2009 02:10 PM
can I track threads? chemdawg LQ Suggestions & Feedback 5 10-10-2005 10:18 PM
Keeping track of my threads? une LQ Suggestions & Feedback 4 04-10-2005 11:35 PM

All times are GMT -5. The time now is 05:10 AM.

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