[Lazarus] Multi-threading support in IDE

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Aug 13 15:02:08 CEST 2009


Graeme Geldenhuys schrieb:

> Quoted from a Posix Thread tutorial I found on the internet.
>   http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
> 
> "Threads require less overhead than "forking" or spawning a new process 
> because the system does not initialize a new system virtual memory space 
> and environment for the process."

IMO it's not a good idea to let the IDE and the compiler share the same 
address space. Even if the compiler could reuse the data (files...), 
loaded into the IDE memory, the synchronized access can cost much runtime.


> So wouldn't it be more efficient to create a new thread for the compiler 
> instead of a new process?

Since Lazarus already includes an parser, a built-in compiler should be 
feasable. But I'm not sure how far the FPC developers will support a 
threaded version of the compiler, that would integrate neatly into Lazarus.

DoDi




More information about the Lazarus mailing list