home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!isgate!krafla!einari
- From: einari@rhi.hi.is (Einar Indridason)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: Normal MSDOS multitasking!
- Message-ID: <5831@krafla.rhi.hi.is>
- Date: 14 Dec 92 13:20:37 GMT
- References: <1ghb1vINNccb@ub.d.umn.edu>
- Sender: usenet@rhi.hi.is
- Lines: 23
- Nntp-Posting-Host: hengill.rhi.hi.is
-
- In <1ghb1vINNccb@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:
-
-
- > Apparantly MSDOS multitasks with the use of the pipe "|". Is this
- >true? How does the | really work? For example: "type this.txt | more"
- >has 'type' and 'more' being ran simultaneously (apparantly). How is
- >this so?
-
- No, that is not a multitasking. MeSsy-DOgS handles the pipe line with
- something like this:
- Run first program to completion, with standard output redirected to a
- temporary file.
- Wait until first program has finished.
- Run second program to completion, with standard input redirected to come
- from the previous temporary file, and if there is more in the pipeline,
- redirect the standard output to another temporary file.
- Wait until second program has finished.
- Do the following programs in the pipeline, in the same way: Run one
- program at a time to completion, _then_ start the next one.
-
-
- --
- einari@rhi.hi.is
-