Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!shelby!portia.stanford.edu!news From: dhinds@portia.Stanford.EDU (David Hinds) Newsgroups: comp.sys.sgi Subject: Use of malloc with multiprocessing code Message-ID: <1991Feb7.192217.11811@portia.Stanford.EDU> Date: 7 Feb 91 19:22:17 GMT Sender: news@portia.Stanford.EDU (Mr News) Organization: Stanford University - AIR Lines: 12 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@cb-iris.stanford.edu