On 10/08/2010 06:49 PM, Reimar Grabowski wrote:

  In general threads have their purpose (for decoding video and audio streams I 
use threads myself). I am not against using threads in Lazarus if they are the 
best option for a given case.
IMHO nowadays threads serve two purposes:

1) reduce latency of certain aspects of a program:
1a) with a GUI program improving the responsiveness of the GUI by reducing the latency of the main thread by doing long winding calculations in a worker thread 1b) with embedded or server-type application preventing one action (the Main thread and other worker threads) from blocking important actions by doing these important actions in their own threads 1c) handling blocking devices (such as serial ports) doing this in the main thread would destroy the GUI latency completely.

2) improving performance by doing long winding parallelizable calculations in multiple threads to allow for taking advantage of multiple CPUs




--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to