[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preemtive or non-prempteve ?



Hi,

Bhanu Kalyan Chetlapalli wrote:

Its not pre-emptive. But I think some ppl (esp those who use linux for
real-time tasks) put patches to make it preemptive.

Actually, Linux 2.6 is preemptive, and this is one of the major improvment over 2.4. See http://lwn.net/Articles/22912/ for more information.


However, the kernel is not fully preemptive: there are some portions of code during which preemption is disabled (using preempt_disable() and preempt_enable()), and real-time people are trying to get rid of these portions of code (or at least reduce them), in order to get the lowest possible latencies.

I hope I didn't say any mistake.

Thomas
--
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/