home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8950 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.8 KB

  1. Xref: sparky comp.os.msdos.programmer:8950 comp.os.msdos.misc:4987
  2. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!plains!plains.NoDak.edu!heilig
  3. From: heilig@plains.NoDak.edu (Zachary Heilig)
  4. Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc
  5. Subject: Re: Why ms-dos is non reentrant
  6. Message-ID: <20031@plains.NoDak.edu>
  7. Date: 1 Sep 92 16:16:25 GMT
  8. References: <92245.122042A10742@TRMETU.BITNET>
  9. Sender: Unknown@plains.NoDak.edu
  10. Organization: North Dakota Higher Education Computing Network
  11. Lines: 26
  12. Nntp-Posting-Host: plains.nodak.edu
  13.  
  14. In article <92245.122042A10742@TRMETU.BITNET> A10742@TRMETU.BITNET (Pinar Aydemir) writes:
  15. >I almost hear everyday that msdos is non-reentrant.
  16. >It is non re-entrant so dont call a dos funcion from a Interrupt Service
  17. >Routine.
  18. >Since It is non reentrant, bla bla bla.
  19. >
  20. >I looked at some books about OS, and the definition of reentrancy is
  21. >given as being unmodified (pure) code.So, what makes msdos non reentrant ?
  22. >Any information  is appreciated.
  23. >-Yasemin
  24.  
  25. For any program/function to be reentrant( i.e. recursion of sorts ), The code
  26. must save separate copies of the local variables.  Dos only saves one copy
  27. of it's variables, and all the functions have access to them, so if you were
  28. to call a dos function from an ISR, you would more than likely be clobbering
  29. data for a previous interupt.  There are probably some interupts that are
  30. safe to call more than once, I thought I read about an interupt that would
  31. tell you if it was safe to call other interupts( not sure on this one)...
  32.  
  33. -- 
  34.     - Zach Heilig (heilig@plains.nodak.edu)
  35.  
  36. Ninety-Ninety Rule of Project Schedules:
  37.     The first ninety percent of the task takes ninety percent of
  38.     the time, and the last ten percent takes the other ninety
  39.     percent.
  40.