On Mon, 18 Apr 2022 19:27:45 -0400,
[email protected] <
[email protected]> wrote:
But I'm still not sure whether I can let `cat` use multiple cores for parallel processing. Any hints will be highly appreciated.
The cat command is supposed to concatenate one or more files, optionally with some
modifications such as suppressing repeated empty output lines, and write them to a
single output. The limited processing available in the cat command ensures it will
be i/o bound, not cpu bound. The first bottleneck the cat command has to deal with
is the write speed. Since there is only one output, there is no possible benefit,
and lots of complications, to try to use more than one core.
To even think of using multiple cores for the cat command, strongly suggests you
should be using some other command.
What are you trying to accomplish? Is this just a test question for some course?
Ah. Just noticed your headers. You're using google groups, not usenet. After
a quick search, the thread you're referring to is from 8 years ago, and it's answered in that thread, that there is no benefit.
Regards, Dave Hodgins.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)