Alex Rivera | Logout

Write a C program to measure time spent in context switch in Linux OS

Asked 2010-03-03T02:34:44.610
27

Can we write a c program to find out time spent in context switch in Linux? Could you please share code if you have one? Thanks

Edit
Report

1 Answer

6

What do you think , measuring the context switching with seconds or milliseconds or even microseconds . All happening less than nano-sec . If your want to spend that huge of time for context switching which could be measured ,then ... Try some real-mode kernel type code written on Assembly , you might see something.

answered 2011-11-19T05:46:37.983

Your Answer