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