|
发表于 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. |
|