LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is there a way to track the order in which linux kernel is scheduling the threads? (https://www.linuxquestions.org/questions/linux-general-1/is-there-a-way-to-track-the-order-in-which-linux-kernel-is-scheduling-the-threads-4175452748/)

shruti05 03-05-2013 01:07 AM

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

theKbStockpiler 03-05-2013 12:50 PM

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.

sundialsvcs 03-06-2013 08:33 AM

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.


All times are GMT -5. The time now is 07:19 AM.