lkml.org 
[lkml]   [1999]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can't sleep less than 20 ms
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.032 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site