[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:45:51 CEST 2010
In our previous episode, Sven Barth said:
> > How about creating
> >
> > a) A native TThreadManager record in system unit for unices.
>
> I don't think this can be done for all Unix systems in a generic way,
> because e.g. on Linux you should use the "clone" syscall (which is Linux
> only)
FreeBSD supports rfork, which has similar functionality (the subset (?)
implemented by "Clone" in the linuxator is implemented by a rfork call
Yrying to build on the clone call has been done in 1.0.x times, and I don't
have fond memories about it.
> while on e.g. Mac OS X you should rely on the c library cause the
> syscall interface might be changed by Apple (@OS X devs: please correct
> me if this is wrong).
First we would have to get rid of "this solution in search of a problem"
attitude.
More information about the fpc-pascal
mailing list