> Ulrich mentioned that linux multitasks cooperatively in
> kernel mode.  Ulrich, is calling schedule() inside the
> loop enough to make it go right ?  If it is I'll go put
> that in the code :)

Well, AFAIK the proper idiom is to use:

    if (need_resched)
        schedule();

This is e.g. used in the printer driver in the loop accessing
the printer port in polled mode ...

Bye,
Ulrich

-- 
  Ulrich Weigand,
  IMMD 1, Universitaet Erlangen-Nuernberg,
  Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-7688

Reply via email to