[lkml]   [1997]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: your mail
    On Tue, 01 Apr 1997 16:39:48 -0500, "Michael K. Johnson"
    <> 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.


     \ /
      Last update: 2005-03-22 13:39    [W:0.015 / U:15.324 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site