[Lazarus] Threads in Lazarus code base
Michael Van Canneyt
michael at freepascal.org
Wed Sep 15 13:29:15 CEST 2010
On Wed, 15 Sep 2010, Juha Manninen (gmail) wrote:
> On Wednesday 15 September 2010 13:32:20 Michael Schnell wrote:
>> Maybe you could start an external process for this ....
>
> ... and pass the data with temporary text files?
> Why would I do that? A thread is lighter, it can see the variables I already
> defined, it is easier to synchronize (WaitFor in this case)...
>
> What is wrong with threads?
Most programs and algorithms are not thread safe.
So if you start introducing threads, that means that there are a lot more
things that can start going wrong, introducing an extra maintenance
burden on the Lazarus team.
I'm not saying that your code *will* cause things to go wrong;
But once the door is open...
Michael.
More information about the Lazarus
mailing list