home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25822 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.2 KB  |  54 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!hphalle6!behrenss
  3. From: behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens)
  4. Subject: Re: re-entrant programs
  5. References: <BzIxqD.9Ln@griffin.cuc.ab.ca>
  6. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  7. Organization: Technische Universitaet Muenchen, Germany
  8. Date: Sun, 20 Dec 1992 16:20:06 GMT
  9. Message-ID: <behrenss.724868406@hphalle6>
  10. Lines: 42
  11.  
  12. dockery@griffin.cuc.ab.ca (Sean Dockery) writes:
  13.  
  14. >I have often heard the term describing software to be "re-entrant."
  15. >The context under which I have heard it most used was an opinion that
  16. >the Apple IIgs tools and GS/OS would be easier to work with if they
  17. >were re-entrant.
  18. >Would someone please enlighten me with the answers to the following:
  19. >    o What qualifies an application as re-entrant?
  20.  
  21. Well, normally you use the term "reentrant" for routines (or algorithms).
  22. Of course, "routine collections" like an OS or a Toolbox or a Library
  23. can also be called reentrant, meaning that all their routines are
  24. reentrant.
  25. Reentrance means that you may, for example, interrupt a routine, and,
  26. while it is interrupted, call it again (this can be nested ad infinitum,
  27. of course :)
  28.  
  29. >    o What are some examples of re-entrant software?
  30.  
  31. Unix kernals. 
  32.  
  33. >    o What are some advantages and disadvantages of an application
  34. >       that is re-entrant?
  35.  
  36. Well, as I said, routines are reentrant, not applications. The advantage
  37. is: In a multitasking environment, more than one process can use the
  38. routine at the same time. Disadvantage: Making routines reentrant requires
  39. more thought on the part of the programmer who writes them.
  40.  
  41. >    o Are re-entrant applications significantly larger that
  42. >       others that perform the same task?
  43.  
  44. Larger, perhaps. I doubt significantly larger. Anyway, the advantages you
  45. get more than weigh up the small discomfort of having (perhaps) slightly
  46. bigger routines.
  47.  
  48. Soenke
  49. -- 
  50. ===========================================================================
  51. More than silver, more than gold, I need   !    behrenss@informatik.
  52. electricity. I need it for my dreams.      !    tu-muenchen.de
  53. (RACTER)                                   !  FIDO: 2:246/13 Soenke Behrens
  54.