From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,9d5e1d36489fe2af X-Google-Attributes: gidf7344,public X-Google-Thread: fd705,8dea03f3432f9a82 X-Google-Attributes: gidfd705,public X-Google-Thread: 1164f8,8dea03f3432f9a82 X-Google-Attributes: gid1164f8,public From: atbowler@thinkage.on.ca (Alan Bowler) Subject: Re: Are computers for everybody? (was Re: A Microsoft Future?) Date: 1997/02/11 Message-ID: #1/1 X-Deja-AN: 218076636 distribution: inet sender: news@thinkage.on.ca references: <5c3tae$93t@reader.seed.net.tw> <5d80m2$2p9g@ausnews.austin.ibm.com> organization: Thinkage Ltd. newsgroups: comp.os.vms,comp.sys.dec,alt.folklore.computers In article <5d80m2$2p9g@ausnews.austin.ibm.com> wa4qal@vnet.ibm.com writes: > >Don't forget, though, that when DOS was first designed, 64K was a lot of >memory! And, given the limited amounts of memory available, and the >program loading structure of DOS, it was not possible to load multiple >programs at the same time. Thus, one program has to finish before the >second program can start. Therefore, the only way for the pipe to work is >to take the output from the first command, save it on disk (remember, not >much memory to work with), and then run the second command. > Then again, earlier Unix systems seldom had even 64k, and managed to do those things. The difference is clear division of responsibility between the operating system and the slave program, so that the Unix system could safely suspend one program and let the other proceed (even if a swap to disk was needed). Memory and disk space were both critical on these systems, and Unix often had to write some of the data from a pipe to disk in order to move it from one process to another. Switching between producing an consuming processes of a pipe, saved disk space because only a few K of disk space was needed, at most rather than a file the size of all the intermediate data. Unix was not unique in this division of responsibilities, other systems of the time had comparable design philosophies. and supported multitasking. Many of these could have supported pipes. It is a credit to the Unix designers that they invented such an elegant construct to do something that was being done more awkwardly on these other systems. In MS-Dos's defence, it was designed with the idea that disk I/O was to a floppy, which was much slower than the disks Unix usually used. Swapping to switch between producing and consuming tasks of a pipe was not really feasible. This had been shown earlier when a Unix system was hosted on a small pdp-11 that had Dectape instead of disk, it ran but ...