is malloc thread safe?

llewelly@edevnull.com llewelly@edevnull.com
Thu Sep 14 22:45:00 GMT 2000


"Hubert Felber" <Felber@abacus.ch> writes:

> Hello,
> 
> Is malloc thread safe? I have lots of trouble with memory in a multithreaded program, thats why I am asking.
> Are there other possibilites to detect memory corruptions then  "efence" ?
> 
> Thank you
> 
> Hubert

malloc() is part of the C library, and not a part of gcc.

Look up malloc, and thread safety in the documentation for your C
  library. 



More information about the Gcc-help mailing list