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

  1. Path: sparky!uunet!olivea!apple!goofy!NewsWatcher!user
  2. From: dowdy@apple.com (Tom Dowdy)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: 'Threads' package question
  5. Message-ID: <dowdy-060193175133@90.10.20.25>
  6. Date: 7 Jan 93 01:54:24 GMT
  7. References: <1993Jan2.184916.18378@cc.umontreal.ca> <1993Jan2.202522.1@fnalo.fnal.gov>
  8. Sender: usenet@goofy.apple.COM
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 31
  12.  
  13. In article <1993Jan2.202522.1@fnalo.fnal.gov>, gwatts@fnalo.fnal.gov wrote:
  14. > In article <1993Jan2.184916.18378@cc.umontreal.ca>, casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:
  15. > > I would like to know what _is_ exactly the 'Threads' INIT (extension).
  16. > > I believe it allows multi-threading programming.  Is this related to multi-
  17. > > tasking?  Is there any sample code that I can look at to program (Pascal,
  18. > > preferably)?  Is there any documentation available? (I have access to ETO).
  19. > Check out develop issue 6 and 7 -- they have the articles describing the
  20. > threads package.  You can get them off the develop cd, or in the apple ftp
  21. > site, under dts/doc/develop.  It has some sample code there as well as the
  22. > text of the article.
  23.  
  24. I should point out that if you don't know what threads are for - or
  25. why you might want to use lightweight tasks within your application -
  26. you may not be ready to use them.
  27.  
  28. Threads require some thought to use properly (ie, in a way which is
  29. actually adding value to your application), and in many cases you can
  30. quite simply structure your application so as to not need to use them
  31. at all.  Almost all cases where they "need" to be used are when you
  32. are relying on some body of code over which you have no control, and
  33. which is not giving up time in a nice way.
  34.  
  35. So, in summary, don't use them just for the sake of using them - use
  36. them because you really are sure they are needed.
  37.  
  38.  Tom Dowdy                 Internet:  dowdy@apple.COM
  39.  Apple Computer MS:81KS    UUCP:      {sun,voder,amdahl,decwrl}!apple!dowdy
  40.  20525 Mariani Ave         AppleLink: DOWDY1
  41.  Cupertino, CA 95014       
  42.  "The 'Ooh-Ah' Bird is so called because it lays square eggs."
  43.