3 ms·
>> Win2k was a very different beast from 95/98/Me. Agreed. Memory protection and pre-emptive multitasking was such a huge improvement back then. Windows 2000
by bluedino 10y ago
>> Win2k was a very different beast from 95/98/Me.
Agreed. Memory protection and pre-emptive multitasking was such a huge improvement back then.
Windows 2000 came out right around when I started working at a consultant/MSP, and all the power users that were using Adobe/Macromedia products were restarting their Windows 98 PC's multiple times per day. After installing Windows 2000 (and possibly adding another 32 or 64MB of RAM) they were running twice as fast and could go without a crash for a week. Mostly due to scanner driver hang-ups or losing communication with parallel Zip drives and things like that.
- Unklejoe 10y agoWait, there was no memory protection in Windows 98? Did it implement virtual memory for processes? If so, it seems like memory protection would be a freebie at that point? I was also unaware that it was not a pre-emptive multitasking system.
- bluedino 10y agoThe new 32-bit stuff was. The problem was all the 16-bit programs and driving weren't, and large parts of Windows itself were still 16-bit.
- userbinator 10y agoThe first 1MB ("realmode area") has no protection and is essentially shared, for compatibility with DOS and 16-bit Windows. Win9x is preemptively multitasked, at least for actual Win32 processes, however I would not be surprised if some parts of it weren't.
- digi_owl 10y agoAnd MS put in various exceptions to make sure programs and games kept working. IIRC, sim city had one such because it had a "use after free" bug. Something that was a nono even in DOS, but not properly enforced by the OS until 9x.
- pwdisswordfish 10y agoThere was, technically, but it was quite sketchy. For example, in Windows 95 the zero page was mapped to physical memory in order to workaround an ancient CPU bug... for which CPU support was later dropped anyway[0][1]; as far as I know, Windows 98 keeps doing this. Try it yourself: run debug.com and type f 0:0 1000 0 It hangs the system even in Windows Me. [0] https://blogs.msdn.microsoft.com/oldnewthing/20110112-00/?p=11773 https://blogs.msdn.microsoft.com/oldnewthing/20110112-00/?p=... [1] https://blogs.msdn.microsoft.com/oldnewthing/20141003-00/?p=43923 https://blogs.msdn.microsoft.com/oldnewthing/20141003-00/?p=...
- to3m 10y agoWhen writing 32-bit Windows programs, I'm pretty sure it was basically the same as working on Windows 2000: separate address spaces per process, virtualized address space, swap file. In terms of ReadProcessMemory and the like (or whatever the equivalent was back then... I only did Win32/DirectX/OpenGL stuff at the time) it was probably a free-for-all (no users, no security...) but if you were just writing ordinary code then the basic operating model was a bit like the usual NT one. The preemptive multitasking did work, but I remember it being quite lame, and if your program didn't use GetMessage/WaitForSingleObject/etc. often enough then it could have a deleritous effect on the rest of the system. But you could still see this sort of behaviour in XP at times, and it only really seemed to resolve itself properly when 2+-core CPUs became common... so I don't know how much Windows 9x's 16-bit heritage can be blamed. This was all quite a long time ago, though, thankfully, so maybe I've forgotten something.
- wvenable 10y agoSo much misinformation -- Yes Windows 95 had memory protection and it had pre-emptive multitasking. The real cause of most BSOD was really hardware and drivers -- and as this article points out, the driver situation in those days was far from straight forward.
- mkup 10y agoThere was memory protection (paging, separate address spaces etc), but it was possible to enter kernel mode code (CPL=0) from user space code (CPL=3) simply by modifying CR0 register. Instead of raising General Protection Fault, Windows silently allowed it. Also direct I/O was allowed (IN and OUT instructions), as well as CLI and STI instructions (disable/enable interrupts). You could bend system however you like straight from userspace code. If you got interested, look at the source code for Virus.Win9x.CIH for more details and examples.
- frik 10y agoWindows 2000 was dog slow even with 128MB memory. Similar like WinNT 4 under 64MB run like a pig. Or WinXP under 256MB. Of course WinNT OS series is rock solid and cannot be compared to Win9x in that way.
- krylon 10y ago> Windows 2000 was dog slow even with 128MB memory. Indeed. A couple of years back, at a former employer, I was given a certain task that required me to set up an "office" in our assembly hall, so the only PC I was allowed to use was one that was practically part of the garbage pile anyway, which turned out to be a Pentium III 450 with 128 MHz of RAM. One of my coworkers gave the heartfelt advice to use Windows 98, but I was young and stubborn. Soon, I was young and impatient. ;-) It was fun, though, the PC had no case, it was just a PSU and a motherboard sitting on a very dusty table, which felt very macho. Fun times.
- justin66 10y ago> Windows 2000 was dog slow even with 128MB memory. I never found it so. That's pretty much the spec of my first Quake gaming rig. Of course, you omitted the CPU, which is a nontrivial detail. I remember the jump from Pentium II to a 800 MHz p3 being a big, big deal.