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    [W:0.103 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site