[lkml]   [1996]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: How many jiffies is mmap() allowed to take in a row?

On 31 Aug 1996, Mike Robinson wrote:
> If you browse through sched.c, I think you'll find that reschedule is not called
> if the currently running task has ticks left on its time slice. sched.c can be
> patched to set need_resched true if any real time priority task is made runnable
> at the current tick, but this is not done by default. Sorry I can't provide a
> patch, but it's Sunday and I'm not at work. (I think there are other problems
> too, BTW)

Actually, schedule() _is_ called even if the currently running process
has ticks left, but only if the "need_resched" flag is set.

And the problem might be that "add_to_runqueue()" doesn't actually know
about real-time processes, so it doesn't set need_resched when waking up
a real-time task..


 \ /
  Last update: 2005-03-22 13:37    [W:0.040 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site