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
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.