home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11377 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.2 KB

  1. Path: sparky!uunet!mcsun!sunic!isgate!krafla!einari
  2. From: einari@rhi.hi.is (Einar Indridason)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <5831@krafla.rhi.hi.is>
  6. Date: 14 Dec 92 13:20:37 GMT
  7. References: <1ghb1vINNccb@ub.d.umn.edu>
  8. Sender: usenet@rhi.hi.is
  9. Lines: 23
  10. Nntp-Posting-Host: hengill.rhi.hi.is
  11.  
  12. In <1ghb1vINNccb@ub.d.umn.edu> cbusch@ub.d.umn.edu (Chris) writes:
  13.  
  14.  
  15. >   Apparantly MSDOS multitasks with the use of the pipe "|".  Is this
  16. >true?  How does the | really work?  For example: "type this.txt | more"
  17. >has 'type' and 'more' being ran simultaneously (apparantly).  How is
  18. >this so?
  19.  
  20. No, that is not a multitasking.  MeSsy-DOgS handles the pipe line with
  21. something like this:
  22. Run first program to completion, with standard output redirected to a 
  23. temporary file.
  24. Wait until first program has finished.
  25. Run second program to completion, with standard input redirected to come
  26. from the previous temporary file, and if there is more in the pipeline,
  27. redirect the standard output to another temporary file.
  28. Wait until second program has finished.
  29. Do the following programs in the pipeline, in the same way:  Run one
  30. program at a time to completion, _then_ start the next one.
  31.  
  32.  
  33. --
  34. einari@rhi.hi.is
  35.