home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / apple2 / 25934 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.3 KB  |  59 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!alberta!cpsc.ucalgary.ca!debug!griffin!dockery
  3. From: dockery@griffin.cuc.ab.ca (Sean Dockery)
  4. Subject: Re: re-entrant programs
  5. Message-ID: <Bzp9w4.LGx@griffin.cuc.ab.ca>
  6. Organization: Synchrotron Software Group, Calgary, Alberta
  7. References: <BzIxqD.9Ln@griffin.cuc.ab.ca> <behrenss.724868406@hphalle6>
  8. Date: Wed, 23 Dec 1992 06:55:15 GMT
  9. Lines: 48
  10.  
  11. behrenss@Informatik.TU-Muenchen.DE (Soenke Behrens) wrote:
  12.  
  13. >Well, normally you use the term "reentrant" for routines (or algorithms).
  14. >Of course, "routine collections" like an OS or a Toolbox or a Library
  15. >can also be called reentrant, meaning that all their routines are
  16. >reentrant.
  17.  
  18. Correct.  I did mean an application as something to which the
  19. techniques are applied.
  20.  
  21. >Reentrance means that you may, for example, interrupt a routine, and,
  22. >while it is interrupted, call it again (this can be nested ad infinitum,
  23. >of course :)
  24.  
  25. Wouldn't this be as easy as having the initialization stage of the
  26. routine save the old values of the variables in an internal buffer or
  27. external stack, and restores the previous values when it reaches the
  28. end of the routine?
  29.  
  30. I have previously implemented this inside some of my programs.  Oh,
  31. well.  I guess it was bound to happen.  (Never mind: it's an inside
  32. joke going around my programming group about me re-inventing the
  33. wheel.)
  34.  
  35. >>    o What are some examples of re-entrant software?
  36. >
  37. >Unix kernals.
  38.  
  39. Actually, I have wrestled with the idea of programming a Unix
  40. environment on the eight bit level, (I know: ick!) but have decided
  41. that it would not be a reasonable course of action (simply because you
  42. would require expanded RAM -- 128K is just not enough.)
  43.  
  44. >Soenke
  45. >-- 
  46. >More than silver, more than gold, I need   !    behrenss@informatik.
  47. >electricity. I need it for my dreams.      !    tu-muenchen.de
  48. >(RACTER)                                   !  FIDO: 2:246/13 Soenke Behrens
  49.  
  50. Thankyou for your reply; I wasn't sure if it was being posted
  51. properly, or not.
  52.  
  53. sean
  54. -- 
  55. # internet: dockery@griffin.cuc.ab.ca   | "alone.  death can't hold a candle
  56. #      -or- dockery@pro-calgary.cts.com |  to it, and hell is a poor synonym"
  57. # pro-line: dockery@pro-calgary         |                       -stephen king
  58. #     uucp: crash!pro-calgary!dockery   | disclaimer: i am unemployed
  59.