On 16.10.2010 15:45, Marco van de Voort wrote:
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.


I did a quick check: NPTL and thus the pthreads implementation on current Linux systems use "clone" as well. I don't know what the trouble were, but if we want a native thread manager on Linux we should try "clone" again (as well as using "rfork" on FreeBSD).

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.

What do you mean by the "this solution in search of a problem" attitude? I can't follow you currently... :(

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to