🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #392

Re: How do virtual 386 DOS windows work?

#392
From: Bill Bochnik (Info Systems)
Date: Tue, 11 Aug 1992 16:06
34 lines
2331 bytes
In article <1992Aug10.172308.188696@zeus.calpoly.edu> rmathews@zeus.calpoly.edu (Bob Mathews) writes:
>kr@jet.uk (Kenneth Reed) writes:
>>I don't use Windows myself, but I was just musing about how it gets the
>>multiple DOS sessions to work in 386 enhanced mode.
>...
>>For example, take 2 processes writing to a file "simultaneously". They
>>both come along and find out what blocks are free and let's assume
>>that the information stays withing the DOS buffers so they don't need
>>to go back to disk again. What stops both processes trying to use the
>>same "free" blocks?
>>
>>Anyone got any ideas on how it works?
>
>The usual solution for parallel processing is to simply disallow anything
>that causes a problem.  I don't really know anything, but my guess is that
>they _don't_ run separate instances of dos.  Just separate instances of
>command.com.  Each one has its interrupts tweaked so that its dos requests
>get handled by whatever operating system is running things.  Now, if
>one of them is trying to do direct disk-level i/o on its own (like a
>hard disk defragmentation program) it'll kill everything.  Which is why
>they warn you not to run such programs.
>

I think that you are close to the answer.  All calls to the disk probably go 
thru 1 source under Windows, queueing 'em up to execute 1 at a time.  This is 
why such things as format in a dos window hoggs the machine.  OS's such as 
OS/2 and Windows NT go about it entirely differently (via locks and such) so 
that it is not as much a problem.

-- 
Bill Bochnik			| It's hard to be a James Bond in an Abbott
Systems Analyst 		|	and Costello world.
Ciba-Geigy Corporation		| Signed and sealed, they deliver oblivion.
philabs!crpmks!billb		| It's worse than that, he's dead Jim.
Technical Details
Message-ID: <1992Aug11.160614.16250@crpmks.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!think.com!linus!philabs!crpmks!billb
References: <1992Aug10.072038.28564@jet.uk> <1992Aug10.172308.188696@zeus.calpoly.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer,comp.windows.ms.programmr
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!think.com!linus!philabs!crpmks!billb
From: billb@crpmks.uucp (Bill Bochnik (Info Systems))
Subject: Re: How do virtual 386 DOS windows work?
Reply-To: billb@crpmks.UUCP (Bill Bochnik (Info Systems))
Organization: Ciba-Geigy Corporation
Date: Tue, 11 Aug 1992 16:06:14 GMT
Message-ID: <1992Aug11.160614.16250@crpmks.uucp>
References: <1992Aug10.072038.28564@jet.uk> <1992Aug10.172308.188696@zeus.calpoly.edu>
Lines: 34