[fpc-pascal]two questions plz help
jonas at zeus.rug.ac.be
Thu Jan 10 17:25:17 CET 2002
On donderdag, januari 10, 2002, at 03:42 , Thomas Schatzl wrote:
>> No, it's not. So fork() is currently only useful if you do
> I assumed because a developer answered to this question without
I know. This has been said so many times, that you can forget it
sometimes :) You're correct it should always be mentioned though.
>> a) no memory allocation (or if you use a thread-safe heap manager, such
>> as the one in the cmem unit of the packages)
> This includes implicit memory allocations like ansistring handling,
> creation, etc. I guess ?
Yes, they all use the currently installed heap manager.
>> b) no IO
>> c) no errno error checking
>> I think the above are the only parts that are not thread safe...
> So if I used a unit like this for Win32 (I remember cmem being Linux
> only...) everything should be ok ? [Assuming that the Win32 system
> management is threadsafe]
Indeed. In fact, I've already heard of someone in the past who was
succesful in creating an MT FPC program this way.
More information about the fpc-pascal