[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange behavior with glibc 2.3.1, malloc and threads in Sid



H. S. Teoh said on Fri, Jan 24, 2003 at 10:41:00AM -0500:
> OK, I might be wrong as well, but aren't Linux threads implemented as
> full-blown processes? Which means they get their own heap space, so
> malloc()'d areas wouldn't be shared. The symptoms you're seeing seems to
> confirm this.

Linux threads share the heap, but not the stack.  They really wouldn't
be threads otherwise. malloc()'d areas are shared.

M

Attachment: pgpf6NrPwxL_p.pgp
Description: PGP signature


Reply to: