RE: kernel preemption does not work

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

 




Hi,

> Test code:
> --------------
> read()
> {
>    if(down_interruptible())
>            return error;
>    mdelay(10000);
>    up();
> }
> 
> With this code in place, I try to do a 'CTRL+C' when it hangs at that
> delay. It does not respond to my 'CTRL + C'.
> 
> Where am I missing the preemption thing in the kernel?

"Ctrl+C" (and other interrupts) should work even on a non-preemptive kernel. Preemption concept is meant for code executing in process context.

Thanks,

Rajat

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux