Use of malloc with multiprocessing code
David Hinds
dhinds at portia.Stanford.EDU
Fri Feb 8 06:22:17 AEST 1991
I'm a little confused about the use of the various malloc's when writing
multiprocessing code. It looks to me like the fast malloc (the one you
get with -lmalloc) uses the same scheme as the arena calls, like amalloc,
which are part of the mpc library. So, what scheme does the malloc in
mpc use? The slow malloc in the regular C library, or the fast kind?
I want to use the fast malloc, but I don't need the semaphoring stuff
in the arena calls. Should I link with -lmalloc and -lmpc? When I do
this, I get linker warnings about duplicate definitions of the malloc
functions.
-David Hinds
dhinds at cb-iris.stanford.edu
More information about the Comp.sys.sgi
mailing list