Hacker News
The little-known winstart.bat batch file
EvanAnderson
|next
[-]
NT, being a "real" OS (with memory protection, kernel/user separation, access control, etc), seems so much more obvious (and boring) in its design compared to the earlier DOS-based Windows series. The "adults" came in and showed the kids how to make a grown-up operating system.
I don't miss the instability of the older DOS-based Windows OS's, for sure. I wouldn't want to go back there. For their time, though, they really did punch above their weight.
Edit: I didn't mean "adults" in any negative sense. I think MSFT took advantage of an opportunity for some very senior and opinionated talent.
smackeyacky
|root
|parent
|next
[-]
At the time most users and businesses didn’t own a PC that could do the virtualisation tricks required by windows 3 (o windows 2 386). A lot of places still had XT class machines right up to the end of the 1980s.
So the Microsoft guys had a pretty complex landscape in which Windows had to operate and they managed a fantastically complicated solution. They were definitely adulting hard during that time.
EvanAnderson
|root
|parent
[-]
I think NT was a means to an end (government contracts requiring a "Rainbow book"-qualified OS). It was a long time before the DOS-based Windows OS lost its position as the consumer / business offering. I think that shows MSFT knew what they had in that legacy code and leveraged it for great profit for a long time.
I think the "adults" came in and made a stuffy buttoned-down operating system meant to qualify as a "C2"-compliant OS meant to win contracts. NT doesn't have the hacky charm of the DOS-based Windows versions.
AdieuToLogic
|root
|parent
[-]
"DOS-based Windows" was not an OS. It was effectively a program which provided a green thread[0] execution model for cooperative processes to execute within and had the reliability one would expect from same.
userbinator
|root
|parent
|next
|previous
[-]
crazysim
|root
|parent
|next
[-]
cyberax
|root
|parent
|previous
[-]
The 16-bit code was a dead end. It was not re-enterable, so 32-bit code had to take a Win16Mutex on every kernel code.
If you ever debugged DirectX code on Win9x, you'd remember that quite vividly. The LockSurface call that provided direct access to pixels locked this mutex, so a breakpoint in a locked section caused an instant hard deadlock.
That being said, it indeed was a brilliant hack that allowed a featereful GUI to run within 2Mb of RAM with good DOS compatibility.
jeffrallen
|root
|parent
|next
|previous
[-]
tom_
|root
|parent
|next
|previous
[-]
EvanAnderson
|root
|parent
[-]
POSIX systems have that stuff, too.
userbinator
|root
|parent
[-]
pudgywalsh
|root
|parent
|previous
[-]
Oh please — it's easy when you have the luxury of starting from scratch with unlimited budget.
DOS-based Windows had to both retain backwards compatibility with DOS applications and all their quirks and coexist with them at the same time.
The amount of hacks necessary to pull that off is an accomplishment unto itself.
Remember you couldn't really play games on NT-based Windows until Windows XP came out and even then DOS games were pretty much out until DOSbox came along.
Guess those "adults" had to stick with Solitaire and Hearts.
jasonfarnon
|root
|parent
|next
[-]
ahartmetz
|root
|parent
|previous
[-]
I think DOS games also worked.
userbinator
|next
|previous
[-]
Decades later, this was again brought to attention by https://en.wikipedia.org/wiki/Hyperjacking and subsequently Microsoft themselves "reinvented" the concept as a Windows feature: https://learn.microsoft.com/en-us/windows-hardware/design/de...
nonfamous
|next
|previous
[-]
>>> Think about that: We booted an operating system and then booted another operating system around it, so that the original operating system was now running inside a virtual machine controlled by the second operating system. It’s like leaving your house, walking down the street, and halfway down the block, realizing that you’re now walking inside a movie studio set.
layer8
|next
|previous
[-]
kmeisthax
|next
|previous
[-]
smartmic
|next
|previous
[-]
dspillett
|root
|parent
|next
[-]
Terminate but Stay Resident was the original DOS function call to allow a utility program to exit but stay in memory waiting for interrupt signals (it will have hooked into those interrupts before calling TSR) to respond to. Utilities that operated in this manner (mouse drivers, and many other useful things) became collectively known as TSR programs and then just TSRs.
There were later other methods of leaving code resident, implemented by various memory managers for background tools that needed to use RAM outside the first 1MB (which in reality meant outside the first 640KB because of how the PC memory map was arranged), but the name TSR stuck to cover them generally.
rombert
|root
|parent
|next
|previous
[-]
denzil
|root
|parent
[-]
Wikipedia has some details, if you are interested: https://en.wikipedia.org/wiki/Terminate-and-stay-resident_pr...
martijnvds
|root
|parent
|previous
[-]
TSRs were a special kind of program, that instead of telling DOS "I'm done, here's my memory back", said "I'm done for now, but don't unload me", so their memory stayed allocated/used. And you got your command prompt back immediately to continue your work.
TSRs usually hooked into an interrupt like the keyboard interrupt, intercepting a hotkey to re-activate the program (so you could browse your address book while you were in your (text mode) word processor; "kind-of" multitasking), or they offered a service to other programs (like the mouse and CD-ROM drivers).
There were all kinds of things that ran as TSRs. Virus scanners (hooking into disk write/reads), modem tools (showing "RING" in the corner of the screen when the modem detected an incoming call), note-taking apps, address books, you name it.
fragmede
|next
|previous
[-]
1970-01-01
|previous
[-]
The extra diagrams to state how it all works were extra.
layer8
|root
|parent
[-]
1970-01-01
|root
|parent
[-]
aleph_minus_one
|root
|parent
|next
[-]
I remember that at the time of Windows 95, I very often had to boot back to DOS 7.0 (which was also delivered as part of the Windows installation) to run DOS games, which were still very popular until like the middle of the 00 years.
And yes, when Windows XP came out (2001), people were somewhat disappointed that you couldn't simply boot DOS anymore to play your old beloved games. Over the years, DOSBox got sufficiently stable and PCs got sufficiently powerful that this gap could be closed.
ralferoo
|root
|parent
[-]
aleph_minus_one
|root
|parent
[-]
Until Windows 3.x this was possible (though not recommended). With Windows 95, there was a boot menu that you could access via the F8 key - my previous post should make it very clear why I still have this in my muscle memory after 20-30 years. Via this boot menu, you could boot into DOS 7.0 (or if an older DOS version was installed before the Windows 95 installation, also this older DOS version). In DOS, you could still run
> win
to get to Windows 95.