[Xastir-dev] Re: Another case of high load

Curt, WE7U archer at eskimo.com
Thu Sep 9 16:30:08 EDT 2004


On Thu, 9 Sep 2004, Henk de Groot wrote:

> Still testing, but some results:
>
> When I put a usleep(250000); in the function "statusline" the load is gone.
> I'm still testing, I don't know if the problem is statusline itself or that
> the "usleep" just slows down a much bigger processing loop. At least I now
> know that the problem is caused by the main thread.

Problem is, that function is called all over the place, so you might
slow down the main processing loop too much by doing that.  What
happens if you use "usleep(1);" though?  That might be do-able.

--
Curt, WE7U			         http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir-dev mailing list