Programming 9x vs. NT Kernel

Status
Not open for further replies.

Epictetus

Ars Tribunus Militum
1,970
Finally scraped up enough money for a copy of visual c++ (poor college student) near the end of the semester, and had significant problems. That and a fried motherboard held up fixing said problems, so I scrapped it and kept coding in pico and using g++ for the rest of the semester. Planned to getting around to installing it again over break, that didn't happen.

Now I'm installing a copy of 9x and wondering where I should put my install of VC++, my 9x install or XP? Are there any drawbacks etc to either? Thanks!
 
Unless you're writing device drivers or code that relies on the NT security subsystem, the OSes offer little difference in terms of the capabilities of their APIs.

They do, however, offer differences in their stability. A stray pointer won't ever cause damage to NT, it can, however, completely destroy Windows 9x.

Given that stray pointers happen from time to time, I'd use XP.
 
Corrupt critical data structures belonging to the OS such that the only choice left is to hit the reset button.

Okay, I wanted to ask before I commented that any program you write and compile and run can not actually destroy your operating system and force you to reinstall.

You can however get blue screens and wonky behaviour with dangling pointers and botched pointer arithmetic and other goodness.

Relating to that are two of my favourite dev/debug tools:
Rational Purify
and
PC-lint
 

stickboy

Ars Tribunus Angusticlavius
6,218
Subscriptor
Originally posted by Level_7:
any program you write and compile and run can not actually destroy your operating system and force you to reinstall.

That's a pretty bold statement, unless you mean "cannot accidentally destroy your OS and force you to reinstall".

A purposely malicious program can be quite capable of trashing your system, no?
 

doug363

Seniorius Lurkius
14
Subscriptor
Originally posted by russ-iha:

Not even a preemtive kernel either. This is the 21st century for cryin' out loud.

I think it was preemptive -- otherwise some of my multi-threaded apps wouldn't have run at all :). In 3.1x it wasn't preemptive (task switching occurred on Yield and GetMessage calls). (Aside: Was Win32s preemptive?) But yes, the kernel in 9x has very poor task scheduling compared to NT/2K/XP, and at times it does seem as if it's not preemptive ;) . As far as development goes, I recommend developing on XP, but then testing very thoroughly on 9x. Some APIs don't work as documented on 9x, so be careful :). Also, the different scheduler may expose race conditions and the like.

Anyway, Mac OS before OS X wasn't preemptive either, was it? Did it have proper memory protection?
 
Originally posted by doug363:
I think it was preemptive -- otherwise some of my multi-threaded apps wouldn't have run at all :).
The kernel wasn't pre-emptible, nor re-entrant, except for one or two functions (I think PostMessage is).

In 3.1x it wasn't preemptive (task switching occurred on Yield and GetMessage calls). (Aside: Was Win32s preemptive?) But yes, the kernel in 9x has very poor task scheduling compared to NT/2K/XP, and at times it does seem as if it's not preemptive ;) .
What russ-iha meant was that the kernel wasn't pre-emptible, which it isn't.

Anyway, Mac OS before OS X wasn't preemptive either, was it? Did it have proper memory protection?
No on both counts.
 

bugbum1

Ars Scholae Palatinae
893
9x vs NT development.

you need to develop on the system your software will run on. if you are developing for both 9x and NT, then use the NT platform as there are additional ACL and security issues that will not show up in 9x.

one nice advantage of developing in NT is stability. it's frustrating having the OS crash when you are debugging. equally nice is the superior NT shell CMD.exe - scroll bars alone are worth the price of admission if you use the VC++ cli (command line interface).
 

russ-iha

Ars Praefectus
4,407
Subscriptor
Oops... yeah PeterB hit what I was trying to say. The kernel in 9x isn't pre-emtible. On NT4/2K/XP, it is.

I think the 9x kernel is also not re-entrant, but I'd have to verify it. I know that, once again, the NT4/2K/XP kernel is re-entrant for sure.


That's at least PART of the reason you can drag a file to a floppy in XP and then go off and do something else, but in 9x the system is sluggish and unresponsive doing the same thing.
 
you need to develop on the system your software will run on. if you are developing for both 9x and NT, then use the NT platform as there are additional ACL and security issues that will not show up in 9x.
This is not true. I mean, my programs may end up getting run on crappy old P200 MMXes, but I'm sure as hell not going to develop on one.

NT is likely a "worst case" scenario. It's got stricter protected memory, it's got stricter permissioning issues. Code that might apparently run in Win9x (accidentally breaking stuff as it runs) won't run in NT.

Develop on NT, test, if you have to, on 9x.
 
Status
Not open for further replies.