[fpc-devel] daemonapp 100% cpu easting fix
Michael Schnell
mschnell at lumino.de
Mon Nov 19 14:48:56 CET 2007
> On linux, everything comes down to polling. The only non-polling solution,
> signals, are not suitable since you don't know in which thread the signal
> ends up, and you must start using complicated inter-thread communication.
>
There are lots of concepts in Linux that theoretically could be used for
signaling. E.G. multiple message queues can be used with select() to
handle multiple events. OTOH whenever a 3rd party widget system like QT
is involved I suppose we need to use whatever this provides
> In practice, polling is simply much more easy and understandable.
Right but technically it offers the lowest performance and unnecessarily
uses the most CPU power.
-Michael
More information about the fpc-devel
mailing list