[fpc-pascal]two questions plz help
jonas at zeus.rug.ac.be
Thu Jan 10 13:23:52 CET 2002
On donderdag, januari 10, 2002, at 09:44 , Thomas Schatzl wrote:
>>> 1. how i can write multithreaded program in free pascal ( using
>>> linux unit and clone function ??? )
>> You just call clone with the right arguments, and that is it.
> Does that mean the RTL is already MT safe ?
No, it's not. So fork() is currently only useful if you do
a) no memory allocation (or if you use a thread-safe heap manager, such
as the one in the cmem unit of the packages)
b) no IO
c) no errno error checking
I think the above are the only parts that are not thread safe...
More information about the fpc-pascal