home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu!wangyu
- From: wangyu@ccwf.cc.utexas.edu (Yu Wang)
- Newsgroups: comp.lang.c
- Subject: free() problem ...
- Message-ID: <79398@ut-emx.uucp>
- Date: 9 Sep 92 04:20:40 GMT
- Sender: news@ut-emx.uucp
- Reply-To: wangyu@ccwf.cc.utexas.edu (Yu Wang)
- Organization: The University of Texas at Austin, Austin TX
- Lines: 19
- Originator: wangyu@grumpy.cc.utexas.edu
-
- Hello guys,
-
- I got a question on free(). It looks to me that free() doesn't
- actually make freed memory spaces available to other programs.
-
- I wrote 2 simple programs: the first one was to allocate, say, a 10MB
- size array, then, free it (using free()), and put in an infinite
- loop. After running the first program in background, I ran the
- second program which used malloc() to grab as much memory as possible
- and report the memory size that had been seized.
-
- I ran the second program many times during a long period of time, but
- the available memory size I got from it was always 10MB less than the
- number I got from running the second program prior to the first
- program, i.e. 10 MB memory was never made available to other programs!
-
- Any help is greatly appreciated.
-
- Lena
-