Philip Blundell wrote:
>
> In message <20010315094634.N19968@redhat.com>, Tim Waugh writes:
> >On Thu, Mar 15, 2001 at 08:45:35AM +0100, Michael Reinelt wrote:
> >> Maybe ppdev should provide an interface to the kernel udelay()
> >> function?
> >
> >Not sure. I'd rather not. Anyone else know the answer to the timing
> >issue?
>
> I don't remember what the original problem was, but I agree that ppdev
> probably should not have a udelay function. Does nanosleep not do what's
> needed?
Yes, it does, but only if you run the process with SCHED_RR or
SCHED_FIFO. And this is dangerous. If the process hangs (maybe because
of a buggy endless loop), wo can't even kill it, because the process
will use up all of your CPU, and you cannot type something (unless you
have a shell running with SCHED_RR and a higher static priority than the
hanging process).
bye, Michael
-- netWorks Vox: +43 316 692396 Michael Reinelt Fax: +43 316 692343 Geisslergasse 4 GSM: +43 676 3079941 A-8045 Graz, Austria e-mail: reinelt@eunet.at-- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Fri Mar 16 2001 - 18:36:24 EST