Article View: comp.sys.powerpc
Article #2326Re: Ask yourself these before you choosing a 32bit OS...
From: Nevin ":-]" Liber
Date: Mon, 25 Sep 1995 08:48
Date: Mon, 25 Sep 1995 08:48
20 lines
1861 bytes
1861 bytes
In article <MLM.95Sep23000627@cslab3e.cs.brown.edu>, mlm@cs.brown.edu wrote:
> Not quite true. UNIX programmers assume malloc/free will do a good
> job of reusing memory that has been free()d, so they don't have to
> worry about it.
No. They assumed that their memory allocation patterns combined with a
fairly large backing store make malloc/free a good enough solution that
fragmentation isn't a practical problem. It isn't like malloc/free do
anything magical.
>If they neglect to free their memory, they lose - but
Different problem. What if the heap is so fragmented that there isn't a
large enough contiguous space of memory? There are three solutions:
abort, compact the heap, or have the programmer then go and figure out how
to make a big enough contiguous free block. Only the first two are
practical, and as a user, I prefer the second method.
--
Nevin ":-)" Liber nevin@CS.Arizona.EDU (520) 293-2799
Technical Details
Message-ID:
<nevin-2509950148140001@mac-nevin.cs.arizona.edu>Path:
arc1-ca.pugleaf.net!mac-nevin.cs.arizona.edu!userReferences:
<3vh2hc$9dd@falcon.ccs.uwo.ca> <wade-1809952212460001@f182-067.net.wisc.edu> <43mrf6INN602@gambier.ugrad.cs.ubc.ca> <wade-1909951248440001@bucky.famres.wisc.edu> <43n5maINNep0@keats.ugrad.cs.ubc.ca> <nevin-2109950243110001@mac-nevin.cs.arizona.edu> <MLM.95Sep23000627@cslab3e.cs.brown.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mac-nevin.cs.arizona.edu!user From: nevin@CS.Arizona.EDU (Nevin ":-]" Liber) Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel,comp.os.ms-windows.advocacy Subject: Re: Ask yourself these before you choosing a 32bit OS... Date: Mon, 25 Sep 1995 01:48:14 -0700 Organization: University of Arizona CS Department, Tucson "It's too dang hot!" Arizona Message-ID: <nevin-2509950148140001@mac-nevin.cs.arizona.edu> References: <3vh2hc$9dd@falcon.ccs.uwo.ca> <wade-1809952212460001@f182-067.net.wisc.edu> <43mrf6INN602@gambier.ugrad.cs.ubc.ca> <wade-1909951248440001@bucky.famres.wisc.edu> <43n5maINNep0@keats.ugrad.cs.ubc.ca> <nevin-2109950243110001@mac-nevin.cs.arizona.edu> <MLM.95Sep23000627@cslab3e.cs.brown.edu> NNTP-Posting-Host: mac-nevin.cs.arizona.edu X-Newsreader: Yet Another NewsWatcher 2.0.2