[fpc-devel] Threading support and C library under Linux/Unix
Michael Schnell
mschnell at lumino.de
Wed Jun 23 13:21:25 CEST 2010
On 06/22/2010 02:57 PM, Graeme Geldenhuys wrote:
>
>> Of course you can avoid using the library, do the stuff in Pascal and
>> directly access the Kernel API, but this might be dangerous in case the
>> API might be modified some time in the future
>>
> Wouldn't the same apply to the pthreads library? From what I understand the
> currently implementation of NTPL is very good, so I doubt it will change
> any time soon.
>
I suppose that the Kernel Thread API (NPTL, FUTEX) in fact is here to
stay, but especially _using_ the FUTEX API in a user land application is
tricky, so relying on libc (on that behalf) seems like a good idea, as
it's "pthread...()" api is easy to use.
-Michael
More information about the fpc-devel
mailing list