home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / realtime / 1487 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!hamblin.math.byu.edu!yvax.byu.edu!cunyvm!ccvqc
  2. Newsgroups: comp.realtime
  3. Subject: Re: What's wrong with DOS in real-time?
  4. Message-ID: <92365.123047CCVQC@CUNYVM.BITNET>
  5. From: Christopher Vickery <CCVQC@CUNYVM.BITNET>
  6. Date: Wednesday, 30 Dec 1992 12:30:47 EST
  7. References: <1992Dec24.105151.559@doc.bmd.trw.com>
  8. Organization: City University of New York/ University Computer Center
  9. Lines: 25
  10.  
  11. If you use a kernel or real-time OS, the software can easily mask
  12. any differences between processor architecture for real-time
  13. performance.  The items to compare are the context switch and
  14. interrupt response times.  The amount of processor state that
  15. has to be saved/restored and the availability of special instructions
  16. for doing so determine context switch times.  Interrupt response
  17. time depends on amount of state, as above, plus the amount of time
  18. that the processor is not interruptable.  The processor's instruction
  19. set determines the amount of time the processor has to be non-
  20. interruptable.  If an interrupt occurs on the 8086 as a divide
  21. instruction starts, the processor will not respond for 100x as
  22. much time as if one of the simple instructions had just started.
  23. The real problem with trying to do real-time with DOS is that the
  24. software disables interrupts for long periods of time.  Adding to
  25. the woe induced by DOS itself is the possiblity that TSRs can muck
  26. around with the interrupt enable flag at will.  There are real time
  27. kernels and real time operating systems available for the 8086, but if
  28. if you want to do real-time on a DOS machine, you have to use iRMX
  29. for Windows.  That's a full-blown real-time OS that runs only on
  30. an 80386 or above, undoubtedly too big for a small embedded app.
  31.  
  32. Somebody else can talk about the Moto chip...
  33. -------
  34. Christopher Vickery, Computer Science Department, Queens College (CUNY)
  35. Flushing, NY 11367-0904  vickery@ipc1.cs.qc.edu (718)997-3500
  36.