Re: Can't sleep less than 20 ms

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Thu, 8 Jul 1999 20:09:32 +0200


Hi!

> I already have a solution for this, I'll have one thread sleep for
> exact 10ms and then post an event, another thread will do the
> processing (I'm writing a RTP library, I have to send/recieve RTP
> packets in the right interval) then wait for the event. In this
> way, the processing thread will wake up at the moment of
> (10ms - the time used to do processing).
>
> Increasing HZ maybe another solution. but I don't the performance
> implication.

Alphas are already runing with HZ=1000 and unless you are running on
386/25, there's no noticeable performance implication...

Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/