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

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!ee0n+
  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: <Iegd38G00WB98APb1X@andrew.cmu.edu>
  6. Date: 12 Sep 92 16:52:24 GMT
  7. Article-I.D.: andrew.Iegd38G00WB98APb1X
  8. Organization: Carnegie Mellon, Pittsburgh, PA
  9. Lines: 35
  10.  
  11. Hi. I've been having a discussion with someone about WInodws over DOS, and I
  12. had some questions about how Windows behaves when DOS and BIOS calls are made.
  13.  
  14. Suppose a Win32 application mades a DOS call  First, does the trap go into
  15. Windows in Protected mode, or into DOS (in 21h)?  I assume it goes into Windows
  16. and stays in protected mode.  When Windows executes the call, what processor
  17. mode does it go into when it transfers to DOS? Real mode (i.e. it switches out
  18. of protected mode) or virtual 8086 mode?  When DOS executes, does Windows
  19. maintain memory and I/O protection, or is the machine unprotected when it
  20. executes the DOS call? For example, let's say I did a DOS call that causes
  21. other process memory to be mangled (assuming it's in the lower 640k) -- will it
  22. be mangled or will Windows trap?  Now DOS, as it is wont to do, will often call
  23. BIOS in the execution of a call.  Will this 1) Trap into protected mode,
  24. Windows code, which Windows will then switch into real/virtual 8086 code before
  25. it makes the actual bBIOS call; 2) Trap into the BIOS directly in real mode?
  26.  
  27. Hence, the big question, how many times does Windows switch between real and
  28. protected mode (protected and virtual 8086?) in a Win32 DOS call? Six is my
  29. guess.
  30.  
  31. Next question, related: what happens when a DOS program does a DOS call?  Does
  32. the processor switch to protected mode, and then do what a Win32 program does?
  33. Or does it run in virtual 8086 mode all the way?
  34. Does a similar process happen with a Win32 or DOS program calls BIOS?
  35.  
  36. Final question: DOS is still non-reentrant under Windows, right, so only one
  37. DOS call may be executing at any given time?
  38.  
  39. Basically I am trying to convince someone that Windows NT will be much more
  40. efficient and less crash-prone than Windows on top of DOS.  I am trying to show
  41. how awkward DOS compatibility makes Windows execution.
  42.  
  43. Thanks for the help in understanding.
  44.  
  45. Eric
  46.