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

Marco van de Voort marcov at stack.nl
Sat Oct 16 15:43:18 CEST 2010


In our previous episode, Michael Van Canneyt said:
> >
> > IMO, it would be better to leverage the present performance condition
> > to muster support for a high performance thread component set.
> 
> How about creating
> 
> a) A native TThreadManager record in system unit for unices.
> 
> b) Create a alternative thread class (TFPThread, TRTLThread, TFastThread or whatever)
>     that uses the TThreadManager record to create 'Fast' threads, which
>     would not be encumbered by the Delphi heritage of TThread.

If Delphi legacy is of no object, and it is new development, simply design
in a threadpool.

If construct/destruction is slow, then don't.



More information about the fpc-pascal mailing list