[Lazarus] Threads and Libraries (dll and so)

Michael Schnell mschnell at lumino.de
Thu Feb 6 14:45:58 CET 2014


On 02/06/2014 02:13 PM, Hans-Peter Diettrich wrote:
> When an application relies on high speed updates, it should serialize 
> these requests itself, as required, instead of leaving this to the 
> desktop manager and its arbitrary request scheduling.
Once again, this is not about serializing "requests" but about allowing 
as much code as possible to be distributed on multiple CPUs as possible.

The "Widget Provider" (including X or whatever) does a fine job 
serializing the requests to the graphics driver, as you can see when 
doing the same stuff in multiple applications instead of multiple threads.

( On top of that you are right that serializing the GUI inputs (i.e. the 
event queue handling) could benefit from multiple threads as well, as 
with that e.g. events from a certain Windows could be handled in a 
higher priority queue than others, but this is a different issue ).

-Michael




More information about the Lazarus mailing list