Re: Premptive vs non-premptive kernel.

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

 



A preemtible kernel will check for need_resched in several places and if safe to do so will invoke preempt_schedule().

The check in not performed in a specific interrupt but rather in the interrupt return path, in the spinlock functions and some other places.

http://www.linuxdevices.com/articles/AT8906594941.html



amith nambiar wrote:
--- Jan Hudec <bulb@ucw.cz> wrote:


schedule() does not do the check. After all, it's
called rather often in
kernel context (explicitely). So the check must be
somewhere in the
timer interrupt stuff.


yes, thats true it cant happen in schedule(), it
should have happened in the timer_interupt service
routine , it striked me later :-) !
which is the service routine and in which file is it? please let me know.
thank you.


cheers,
Amith




__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo


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



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: 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