以上的代码中, 因为有了内核抢占( kernel preemption),你可以在任何地方进行抢占。当重新调度时,你可能在使用另外一个cpu并且'cpu'的值不再指向当前的cpu了。
基于64个网页-相关网页
In Chapter 2, we focus on the kernel preemption strategy and scheduling algorithms. For the kernel preemption, we will examine two improved schemes and patches, with emphasis on the analysis of the inserting-preemption-point scheme.
接着本文从Linux的内核抢占和调度机制上进行了重点分析和研究:在内核抢占方面,分析了改进可抢占性的两种方案及补丁,其中重点分析了插入抢占点的方案;在调度机制方面,分析了Linux2.4.18的进程调度部分,讨论了两种经典实时调度算法。
参考来源 - 嵌入式Linux及其调度策略的研究·2,447,543篇论文数据,部分数据来源于NoteExpress
以上来源于: WordNet
应用推荐