Q
Q
q2zoff2019-03-07 21:56:50
linux
q2zoff, 2019-03-07 21:56:50

How to activate "multi-processing" when using pipelined commands?

Good afternoon.
Suppose there is some code on the bash:
cmd1 | cmd2 | cmd3
In this example, all three commands share the resources of one processor core.
The question is, how can I force each command to use processor resources independently of each other? In other words, how to distribute commands to individual cores?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-03-07
@q27off

cmd1 | cmd2 | cmd3
In this example, all three commands share the resources of one processor core.

Not at all. They get all available resources at their disposal. The problem could be that cmd1 doesn't produce enough data for cmd2 to load the kernel at 100%, or cmd2 doesn't read data fast enough and slows down cmd1, and the same in pair cmd2 | cmd3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question