lkml.org 
[lkml]   [1997]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: your mail
On Tue, 01 Apr 1997 16:39:48 -0500, "Michael K. Johnson"
<johnsonm@redhat.com> said:

> It sounds like the rule is now:
> o You can use schedule() when you just want to possibly give time
> to other processes, modulo scheduling policy now in effect. After
> all, schedule() didn't always yield in the past; it only yielded if
> there was any reason to do so.

Indeed. To force a yield, you would need to do a
current->counter = 0;
before you schedule(), otherwise you might well be picked for
immediate reschedule. schedule() just forces the scheduler algorithm
to run, it doesn't force a context switch as a yield() should do.

Cheers,
Stephen.

\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site