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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal