[fpc-devel] daemonapp 100% cpu easting fix
Bogusław Brandys
brandys at o2.pl
Mon Nov 19 14:17:43 CET 2007
Steve Howe wrote:
> Hello all,
>>> such as
>>> changing the sleep time. Would it hurt to make it virtual ?
>> Is it really necessary to do polling (with or without sleep) here ?
>> Avoiding polling in any case would improve the performance and reduce
>> intrusiveness.
> On Windows you have alternatives such as someone posted in thread, but on
> Linux/Unix you must to do polling as far as know.
>
> Anyway polling with sleep will consume very few cpu, acts very well overall
> and it's more portable.
>
Yes.On windows you could create event and wait for it to be
signaled.This particularly move response for loop to the windows core
and makes a huge difference in CPU usage.
Good luck.
Boguslaw
More information about the fpc-devel
mailing list