Re: Scheduler and user preemption

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

 



Preemption can occur even when time slice is still remaining. This will happen for example, when a user process needs a disk I/O and the kernel will put it to sleep and hence preemption will occur.

Didnt quite get the second part of your question.

On 1/27/06, Ashok Sharma <aks6d@xxxxxxxxxxx> wrote:

User preemption can occur when (i) returning to user
space from a system call (ii) when returning to user
space from an interrupt handler.

My doubt is that one of these conditions may occur
Only after the time slice of a process is over. Worse
still can a user be executing without making a system
call or interrupt occurring. In this case user will
not preempt even long after the time slice is over as
preemption depends on conditions (i) and (ii) given
above. Or am I missing a point. Please explain.

Best
Ashok



___________________________________________________________
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry

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




--
"There are 10 people in the world - those who understand binary and those who dont !"

[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