[fpc-pascal] Re: Multi-threaded project with few locks (no Thread.waitfor). Memory consumption keeps increasing on Ubuntu 10.10 x64

Michael Van Canneyt michael at freepascal.org
Thu Oct 14 09:35:58 CEST 2010



On Thu, 14 Oct 2010, Sven Barth wrote:

> The problem with an own version of pthreads is that those threads will be 
> limited to Pascal code only, cause other (C based) libraries will still use 
> pthreads.

This is not a problem for pascal-only libs.

>
> An interesting lecture on this topic is in the wiki of Wine, cause they had 
> to implement their own threading implementation as well (the old pthreads 
> library wasn't capable enough for the needs of the WinAPI). eYou can find the 
> article here:
> http://www.winehq.org/docs/winedev-guide/threading
> (the interesting paragraph is "POSIX threading vs. kernel threading").

It makes you wonder how Andrew's programs would behave under wine :-)

Michael.



More information about the fpc-pascal mailing list