home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14047 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  1.4 KB

  1. Path: sparky!uunet!usc!rpi!uwm.edu!ogicse!reed!orpheus
  2. From: orpheus@reed.edu (P. Hawthorne)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Porting code using fork() to the Mac
  5. Message-ID: <1992Aug16.001018.26666@reed.edu>
  6. Date: 16 Aug 92 00:10:18 GMT
  7. Article-I.D.: reed.1992Aug16.001018.26666
  8. References: <503@owl.ukc.ac.uk> <1992Aug14.181503.3108@amgen.com>
  9. Organization: Reed College, Portland, OR
  10. Lines: 20
  11.  
  12.  
  13.   mikeb@sam.amgen.com, Michael Brennan, writes:
  14. : Apple has released a "Threads" library on its developer CDs. It's use is
  15. : documented in issue 6 of Develop. It has a calling syntax very similar to
  16. : fork() and (from what I've been able to tell) appears to be quite robust.
  17.  
  18.   If imitation is the sincerest form of flattery, then a failed attempt at
  19. imitation is the most telling. I, rather unsuccessfully, tried to take the
  20. same approach to a threading package for Object Pascal. It was like trying
  21. to walk on eggshells, and still make the perfect omelette.
  22.  
  23.   In the docs, there is some interesting discussion of a scheme for marking
  24. all unused code resources purgeable. The idea was to mark all code
  25. resources purgeable with the obvious exception of one resource, followed by
  26. a walk of the stack looking for anything resembling a return address, so
  27. that the relevant resources could be marked as non-purgeable.
  28.  
  29.   Has anyone given that a shot?
  30.  
  31.   Theus (orpheus@reed.edu)
  32.