This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好,
恐怕不会有一个简单的答案。考量之一是先建立一个CPU load meter,这个meter用于计算目前剩下的CPU cycle 数。因此,可以知道操作系统在“空转”时所消耗的cycles,这就是OS 的基本overhead。当然,还要进一步考量OS 在 runtime 做任务调度时的开销。
谢谢!