[Lazarus] Threads in Lazarus code base
Michael Van Canneyt
michael at freepascal.org
Wed Sep 15 10:48:09 CEST 2010
On Wed, 15 Sep 2010, Juha Manninen (gmail) wrote:
>
> I was amazed that there isn't a single use of threads in Lazarus code base.
> Threads however are the thing of the future because computers have more and
> more CPU cores. Threads are a way to utilize them.
Threads are a thing of the past as well. I've been programming threads since years.
There is nothing exciting about them, mostly they are a pain.
Programming threads is error-prone, and needs careful design of your classes.
I doubt that the lazarus IDE is very thread-safe, and therefor I think that
the lazarus devels do not enable threading by default.
This is also why the UseCThreads is there. There is no need to drag in thread
support if you don't use it: it creates additional dependencies which you
simply don't need if you don't program using threads.
Michael.
More information about the Lazarus
mailing list