home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3238 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  46 lines

  1. Path: oreig.uji.es!ii201
  2. From: ii201@rossegat.uji.es (Villellas Guillen Oscar)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: resourcetracking/Kill on A4000
  5. Date: 9 Feb 1996 12:58:43 GMT
  6. Organization: Universitat Jaume I. Castell≤ de la Plana. Spain
  7. Distribution: world
  8. Message-ID: <4ffge3$g7i@oreig.uji.es>
  9. References: <4e0554$hro@merkurius.lu.se> <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de> <4eamsf$h5t@oak70.doc.ic.ac.uk>
  10. NNTP-Posting-Host: @rossegat.uji.es
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. In article <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>, meixner@rbg.informatik.th-darmstadt.de (Matthias Meixner) writes:
  14. >Resource-tracking is not possible with the current version
  15. >of the OS. The problem is resource trading:
  16.  
  17. >task "a" allocatest memory and sends it to task "b"
  18. >task "b" can now do with it what it wants.
  19. >If you had resourcetracking, the memory would be 
  20. >freed if task "a" terminates and whereas task "b"
  21. >would still use it, which is a good way to bring a
  22. >system down.
  23.  
  24.   If the app. is rightly coded I think that its quite
  25. possible.
  26.  
  27.   The resource tracker, would have to look at the memory
  28. allocation flags, if memory is being allocated with a
  29. special flag it should be treated as shared memory and not
  30. enter in the memory deallocation when the program that
  31. allocates it dies. I think this and memory protection was 
  32. the purpose of the MEMF_PUBLIC flag.(which I think was stated
  33. to be used when
  34. you allocated memory that other task had to access to).
  35.  
  36.  
  37. --
  38.                    //\\\
  39.                    /o \\
  40.         +-----oooO--(_)--Oooo-----+        _ _
  41.         | Oscar Villellas Guillen |       ////
  42.         +-------------------------+  _ _ ////
  43.                    | | |             \\\X///
  44.                   ooO Ooo             \XXX/ Always...
  45.            ii201@rossegat.uji.es            Intuition rules!
  46.