home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.coherent:3342 comp.os.minix:3793
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
- Newsgroups: comp.os.coherent,comp.os.minix
- Subject: Re: OS compare (Unix/clone)
- Message-ID: <1992Jul29.172406.29587@klaava.Helsinki.FI>
- Date: 29 Jul 92 17:24:06 GMT
- References: <PETRI.VIRKKULA.92Jul27231025@vipunen.hut.fi> <1992Jul28.154817.5839@mtu.edu> <PETRI.VIRKKULA.92Jul29191611@vipunen.hut.fi>
- Organization: University of Helsinki
- Lines: 40
-
- In article <PETRI.VIRKKULA.92Jul29191611@vipunen.hut.fi> Petri.Virkkula@hut.fi (Petri Virkkula) writes:
- >
- > Haven't I understood something correctly? Isn't it possible to
- > swap segments to disk using Valid and Accessed flags in
- > segment descriptors?
-
- Yes, it's certainly possible, but it's also almost never worth the
- bother: it's slow, hard to program, and writing a C-compiler (and
- probably any other language) to understand several segments while still
- being efficient is pretty hard. And having just one code-segment and
- one data (and stack) segment is simply not enough for a lot of
- interesting applications.
-
- Having several different code/date-segments doesn't lend itself very
- well to high-level languages (it doesn't even work too well in assembly,
- but there the programmer often knows what he/she is doing). Thus
- coherent 3.2 and minix don't even try: they keep to one segment, and
- limit all data to 64kB. You can do a lot in 64kB, but I'd rather miss
- the experience.
-
- OS/2 1.x tried to implement a "real" system on a 286, and while some
- people think it worked well, most people (including the OS/2 2.0
- designers) seem to agree that the 286 protected mode memory management
- is simply not enough for any good real system. Of course, you can still
- use them for DOS or some other embedded system (a toaster, washing
- machine etc).
-
- That doesn't mean the 386 is perfect: it has got it's own number of
- idiocyncracies (especially when used in AT hardware). But at least you
- don't have to fight the hardware all the way if you want to do something
- bigger on a 386.
-
- Linus
-
- PS. "Being able to" and "suitable for" are totally different things:
- you can write a fully multitasking VM system with 32-bit pointers on a
- Z80 (for example by writing a 386 (or why not a cray-XMP?) emulator on
- it), and all general-purpose processors are theoretically able to solve
- the same set of problems. Thus even a lowly 286 can provably do the
- same things a 386 does. It's just not worth it in most cases.
-