On 06/06/2011 02:18 PM, Michael Schnell wrote:
... and using threads only very thoughtfully when it really makes sense..

E.g. receiving data from asynchronous links or TCP/IP is done in objects that contain an internally hidden thread that waits for incoming data. When data is received, a main thread event is fired and the programmer can happily use this data without bothering at all about thread synchronization.

Of course this works with any number of instances of such objects, while the application programmer does not see any threads at all.

-Michael


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

Reply via email to