home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18408 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.9 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!uwm.edu!ee!bloc1469
  2. From: bloc1469@ee.ee.uwm.edu (Gregory R Block)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Flushing Devices; C= doco (mutter!)
  5. Date: 9 Jan 1993 08:26:40 GMT
  6. Organization: Electrical Engineering Dept. University of Wisconsin - Milwaukee
  7. Lines: 35
  8. Message-ID: <1im280INN80o@uwm.edu>
  9. References: <1993Jan7.092127.13752@philips.oz.au> <1iia8tINNdeh@darkstar.UCSC.EDU> <crystal.726454269@glia>
  10. NNTP-Posting-Host: 129.89.2.33
  11.  
  12. In article <crystal.726454269@glia> crystal@glia.biostr.washington.edu (Crystal) writes:
  13. >Ok, so, other than "avail flush", what other ways are there?  I want to
  14. >recover as much as I can from those programs that don't clean up after
  15. >themselves.
  16.  
  17. This is the thing, you don't seem to understand how the system of
  18. libraries seems to work.
  19.  
  20. When AllocMem is called, the system checks the free lists of memory to
  21. see if there is enough.  If there isn't, it does something unusual:
  22.  
  23. It goes through everything, and tells each library, etc., to "expunge"
  24. itself.  If it is still in use, it simply replies to the expunge request.
  25. If the library _ISN'T_ in use, it frees itself from memory, and the
  26. system goes on to the next library/etc.
  27.  
  28. After it does this, it checks the free lists again.  If it _STILL_
  29. fails, the call fails.  Otherwise, the system gives you the memory.
  30.  
  31. This has the advantage of preserving the amount of times a library is
  32. loaded from disk/wherever.  It speeds up the system considerably when
  33. there is enough memory, and when memory gets low, the system
  34. automatically cleans up what isn't in use.
  35.  
  36. You're worrying about a problem that doesn't exist, dear.
  37.  
  38. Greg
  39.  
  40.  
  41.  
  42. --
  43. (: (: (: (: Have you overdosed on smileys today?  Why NOT!?! :) :) :) :)
  44. (: "Our father, who art in Iowa, Hollow be thy head, Thy ideas run    :)
  45. (:  Thy will be done, At Commodore as it is at Apple"  -Dan Barrett   :)
  46. (: (: (: (: (: (: (: (: (: (: (: (: () :) :) :) Wubba, the Dark Angel :)
  47.