QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 813|回复: 1

关于linux2.4.20抢占的问题。。。,谢谢各位帮个忙,

[复制链接]
发表于 2003-5-22 08:28:51 | 显示全部楼层 |阅读模式
有急用。。。
请问网上的内核2。4。20的抢占补丁,是直接修改源代码吗?请问网上有已经编译通过的抢占内核吗 ?
除了2。5的内核,
还有,请问有没有工具能测试该内核是否为抢占的,有在哪里可以得到,如果没有请问,我该怎样做才能知道该内核为抢占的,
小弟做毕业设计,急救。。。。。。。
发表于 2003-5-22 08:51:13 | 显示全部楼层
yes, these kinds of patches are always modify kernel source code directly
i do not if such kernel available,
2.5.x includes it.
check the benchmark on http://kpreempt.sourceforge.net/
i am not sure if such a program available. but i think it is not so difficult to write a program to test this.

base on its purpose
+CONFIG_PREEMPT
+  This option reduces the latency of the kernel when reacting to
+  real-time or interactive events by allowing a low priority process to
+  be preempted even if it is in kernel mode executing a system call.
+  This allows applications that need real-time response, such as audio
+  and other multimedia applications, to run more reliably even when the
+  system is under load due to other, lower priority, processes.
+
+  This option is currently experimental if used in conjuction with SMP
+  support.
+
+  Say Y here if you are building a kernel for a desktop system, embedded
+  system or real-time system.  Say N if you are building a kernel for a
+  system where throughput is more important than interactive response,
+  such as a server system.  Say N if you are unsure.
u can have two codes with different priorities. and see if one can get control from another one. design a scenario and implement it.

or if u are lazy to write, u can go its mailing list to answer if sb already wrote one.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-22 16:01 , Processed in 0.085641 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表