home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11422 < prev    next >
Encoding:
Text File  |  1992-12-15  |  3.4 KB  |  80 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!uunet.ca!ohrd!twriter
  3. From: twriter@rd.hydro.on.ca (Timothy Writer)
  4. Subject: Re: Normal MSDOS multitasking!
  5. Message-ID: <1992Dec15.202449.28162@rd.hydro.on.ca>
  6. Reply-To: twriter@rd.hydro.on.ca
  7. Organization: "Ontario Hydro - Research Division"
  8. References: <1ghb1vINNccb@ub.d.umn.edu> <9212142475@fcshome.UUCP> <dmurdoch.363.724430472@mast.queensu.ca>
  9. Date: Tue, 15 Dec 92 20:24:49 GMT
  10. Lines: 68
  11.  
  12. dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:
  13.  
  14. >In article <9212142475@fcshome.UUCP> fredex@fcshome.UUCP (fred smith) writes:
  15. >>MS-DOS is too stupid to multitask. It lacks the facilities. 
  16.  
  17. >Yes.
  18.  
  19. >>on Unix, the same thing is literally done by running
  20. >>two programs "at the same time" with the output of the first going
  21. >>to the input of the second. BUT NOT ON DOS which is fundamentally
  22. >>incapable of doing that.
  23.  
  24. >No, it's just that you don't have the right software.  There are several 
  25. >multitaskers which sit on top of DOS and make it multitask.  Windows is one, 
  26. >Desqview is another.  I don't know if anyone has bothered to make pipes
  27. >work the way they do on Unix.  Windows has more or less given up on that 
  28. >method of file management, so you're not likely to see it there.  I heard 
  29. >last year that someone intended to do it for Desqview, but I don't know if 
  30. >they ever published the results.
  31.  
  32. >The number of times where it really matters whether two programs are run 
  33. >concurrently at half speed or sequentially at full speed is so tiny, that I 
  34. >doubt if it's on anybody's "10 most important projects" list.
  35.  
  36. Can you support that statement?  I doubt it.  It may be true for DOS
  37. users because they have never had the option but I don't think it's true
  38. for the wider user community.  Consider the following (UNIX commands):
  39.  
  40.     cc -E program.c | more
  41.  
  42. I use this to view the result of running the C preprocessor on my
  43. program when I suspect a problem with a complex macro.  I don't want to
  44. wait for the first command to complete before I can view the results.
  45.  
  46.     man cc | more
  47.  
  48. Suppose I just want to check the syntax of a particular option for the C
  49. compiler.  The most common options are documented at the beginning (for
  50. obvious reasons) so I don't want to wait for the entire manual page to
  51. be formatted first.  In fact, if I quit once I've found what I'm looking
  52. for, man cc never runs to completeion!  This may not matter to me much
  53. but it may matter to other users who are sharing the CPU with me.
  54.  
  55.     zcat huge.tar.Z | tar tvf - | grep 'foo*.c'
  56.  
  57. Here I'm just looking for some files matching a pattern in a LARGE
  58. compressed archive.  Do you really want to uncompress and list the
  59. entire contents of the archive?  What if you don't have the disk space
  60. for the entire archive?
  61.  
  62. The point is a true UNIX style pipe is a very useful, often time
  63. (mine as well as the CPU) saving device.  As MSDOS does not have the
  64. necessary primitives to easily support true pipes, I don't seriouly
  65. expect it to ever have them.  Neither do I expect Windows to have pipes
  66. in the near future as Windows has abandoned the concept of standard
  67. input and standard output (IMHO, this was a mistake because it makes
  68. porting even strict ANSI C compliant software to Windows difficult).  As
  69. for Desqview, I don't know enough about it to say whether pipes are
  70. possible or useful.
  71.  
  72. Just my $0.02.
  73. Tim
  74.  
  75. -- 
  76. Tim Writer                 phone:  (416) 231-4111 ext. 6990
  77. Ontario Hydro Research Division         fax:    (416) 237-9285
  78. Toronto, Ontario             e-mail: twriter@rd.hydro.on.ca
  79. CANADA
  80.