How to estimate the thread context switching overhead?

前端 未结 9 618
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 19:29

I am trying to improve the performance of the threaded application with real-time deadlines. It is running on Windows Mobile and written in C / C++. I have a suspicion that

9条回答
  •  伪装坚强ぢ
    2020-11-30 19:53

    Context Switch is expensive, as a rule of thumb it costs 30µs of CPU overhead http://blog.tsunanet.net/2010/11/how-long-does-it-take-to-make-context.html

提交回复
热议问题