How do you measure context switch time in OS?
any ideas?
e********e 发帖数: 250
2
扔个砖头先,
Write a 2-thread program which does nothing but yields. Pin to one CPU. Mask
off all interrupts. Set priority high. Run 1 million times and measure the
overall time.