thread context switching
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Tue Mar 18 13:12:22 EDT 2014
On Tue, Mar 18, 2014 at 10:24 PM, <Valdis.Kletnieks at vt.edu> wrote:
> On Tue, 18 Mar 2014 19:01:50 +0300, Nada Saif said:
>
>> I want to measure thread context switching in c, How I can do that?
Looks suspiciously like an interview-type question? :)
>
> What are you trying to measure, exactly, and why? The answer depends on
> the details of the question.
>
> However, my first go-to solution would see if 'perf' can cough up the
> numbers you need. It's able to slurp out all sorts of timing data from
> the kernel (though some data and trace points require CONFIG_* variables
> to be set in the kernel build).
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
More information about the Kernelnewbies
mailing list