Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!imagen!atari!portal!portal!cup.portal.com!phorgan From: phorgan@cup.portal.com (Patrick John Horgan) Newsgroups: comp.sys.amiga.tech Subject: Re: A REAL fork() function (was Re: SKsh weirdness) Message-ID: <27448@cup.portal.com> Date: 2 Mar 90 03:45:53 GMT References: <13920050@hpfelg.HP.COM> <22496@pasteur.Berkeley.EDU> Organization: The Portal System (TM) Lines: 10 I suspect that malloc is faster than AllocMem because c is managing it's own heap it AllocMem'd earlier. Of course malloc has to manage it's heap just the same as the Exec has to manage the Amiga's. A typical c sort of heap management is something that's been studied extensively in the universities, and you can find references to tell you optimum ways of doing it. Another point is that the Amiga has to worry about the (slightly) greater overhead of the memory type you are requesting. Patrick Horgan phorgan@cup.portal.com