home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5646 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.1 KB  |  51 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!eng.ufl.edu!manta!zzang
  3. From: zzang@stat.ufl.edu (zzang)
  4. Subject: VM questions in Blue Book
  5. Message-ID: <1992Nov22.023126.825@eng.ufl.edu>
  6. Originator: zzang@manta
  7. Sender: news@eng.ufl.edu (Usenet Diskhog System)
  8. Organization: University of Florida
  9. Distribution: usa
  10. Date: Sun, 22 Nov 92 02:31:26 GMT
  11. Lines: 38
  12.  
  13. Hello,
  14. I am reading the Blue Book, and I like
  15. it very much. but it is hard for me
  16. to understand the virtual memory.
  17. what is the virtual memory, is it
  18. something about the disk spaces used
  19. by the program to extend the RAM
  20. capability?
  21.  
  22. here is the example from the book:
  23. (Copyright by Adobe)
  24.  
  25. 1:
  26. /localdict 1 dict def
  27. /sampleproc
  28.   { localdict begin
  29.       /localvariable 6 def
  30.     end
  31.   } def
  32.  
  33. 2:
  34. /sampleproc
  35.   { 1 dict begin    %this allocates new VM each time
  36.     /localvariable 6 def
  37.     end
  38.   } def    
  39.  
  40.  
  41. the book says the 2nd procedure will use more memory.
  42. but they look the same to me, I am totally confused.
  43. could someone explain this.
  44.  
  45. Thanks very much in advance!
  46.  
  47. -- 
  48. Zhuo Zang[~{j0WA~}]
  49. Department of Statistics
  50. University of Florida            Email: zzang@stat.ufl.edu
  51.