home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8538 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.7 KB  |  37 lines

  1. Xref: sparky comp.os.msdos.programmer:8538 alt.msdos.programmer:2204
  2. Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,comp.windows.ms.programmr
  3. Path: sparky!uunet!rei2!fox
  4. From: fox@rei.com (Fuzzy Fox)
  5. Subject: Re: How do virtual 386 DOS windows work?
  6. Message-ID: <1992Aug14.181514.1911@rei.com>
  7. Date: Fri, 14 Aug 1992 18:15:14 GMT
  8. References: <1992Aug10.072038.28564@jet.uk>
  9. Organization: Recognition Equipment, Inc.
  10. Lines: 25
  11.  
  12. kr@jet.uk (Kenneth Reed) writes:
  13.  
  14. >For example, take 2 processes writing to a file "simultaneously". They
  15. >both come along and find out what blocks are free and let's assume
  16. >that the information stays withing the DOS buffers so they don't need
  17. >to go back to disk again. What stops both processes trying to use the
  18. >same "free" blocks?
  19.  
  20. Think about this:  Suppose you open two files in a standard DOS program,
  21. how does does "know" not to write the two files on top of each other?
  22. Answer:  Because it's DOS and it manages the disk access.
  23.  
  24. I think what you're missing is that there are not multiple versions of
  25. DOS running in virtual machines.  OS/2 does that.  Windows actually
  26. shares the memory image that exists in the machine at the point where
  27. you typed 'WIN', so all TSR's, including DOS, are shared by all DOS
  28. boxes that you open in Windows.  It's the same DOS running in each box.
  29. So when you run muliple DOS boxes, DOS just thinks you are running a
  30. program called Windows which has a helluva lotta files open.
  31.  
  32. -- 
  33. #ifdef TRUE         | Fuzzy Fox                  fuzzy@netcom.com
  34. #define  TRUE   0   | a.k.a. David DeSimone      an207@cleveland.freenet.edu
  35. #define  FALSE  1   |
  36. #endif              |         How's my posting?  Call 1-800-ALT-FLAME
  37.