home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 938 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  2.5 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!engage.pko.dec.com!newsdaemon
  2. From: ee0n+@andrew.cmu.edu (Eric James Ewanco)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Windows 3.1 & Processor Mode Swap
  5. Message-ID: <1992Sep13.214651.2526@engage.pko.dec.com>
  6. Date: 13 Sep 92 21:46:51 GMT
  7. References: <Iegd38G00WB98APb1X@andrew.cmu.edu>
  8. Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
  9. Organization: Carnegie Mellon, Pittsburgh, PA
  10. Lines: 40
  11.  
  12.  
  13. [I posted this earlier with a MAJOR ERROR, I said "win32" and i meant "win16".
  14. I am reposting this.  The topic is on Windows 3.1 for DOS . . .]
  15.  
  16. Hi. I've been having a discussion with someone about Windows 3.1 over DOS, and
  17. I had some questions about how Windows behaves when DOS and BIOS calls are
  18. made.
  19.  
  20. Suppose a Windows 3.1 Win16 application mades a DOS call First, does the trap
  21. go into Windows in Protected mode, or into DOS (in 21h)?  I assume it goes into
  22. Windows and stays in protected mode.  When Windows executes the call, what
  23. processor mode does it go into when it transfers to DOS? Real mode (i.e. it
  24. switches out of protected mode) or virtual 8086 mode?  When DOS executes, does
  25. Windows maintain memory and I/O protection, or is the machine unprotected when
  26. it executes the DOS call? For example, let's say I did a DOS call that causes
  27. other process memory to be mangled (assuming it's in the lower 640k) -- will it
  28. be mangled or will Windows trap?  Now DOS, as it is wont to do, will often call
  29. BIOS in the execution of a call.  Will this 1) Trap into protected mode,
  30. Windows code, which Windows will then switch into real/virtual 8086 code before
  31. it makes the actual BIOS call; 2) Trap into the BIOS directly in real mode?
  32.  
  33. Hence, the big question, how many times does Windows switch between real and
  34. protected mode (protected and virtual 8086?) in a Win16 DOS call? Six is my
  35. guess.
  36.  
  37. Next question, related: what happens when a DOS program does a DOS call?  Does
  38. the processor switch to protected mode, and then do what a Win16 program does?
  39. Or does it run in virtual 8086 mode all the way?
  40. Does a similar process happen with a Win16 or DOS program calls BIOS?
  41.  
  42. Final question: DOS is still non-reentrant under Windows, right, so only one
  43. DOS call may be executing at any given time?
  44.  
  45. Basically I am trying to convince someone that Windows NT will be much more
  46. efficient and less crash-prone than Windows on top of DOS.  I am trying to show
  47. how awkward DOS compatibility makes Windows execution.
  48.  
  49. Thanks for the help in understanding.
  50.  
  51. Eric
  52.