Ulrich Weigand wrote:
> 
> > 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 ...

I'll try it.

Ramon



Reply via email to