- So for this one, we need to open a root cell.
Sudo minus i is the best way to open a root cell.
And then dd if is dev zero,
which in fact is reading the input file
if is for input file
and the input file is dev zero
that's special device that is generating zeros
of is dev null that's the output file.
And the output file is a special device dev null.
It's a discard device
and, we need to run this as a background job
and three times.
So there we go.
Then we need to use the appropriate command to show
that they are running as expected.
Well, that's something that you can do
with PS aux pipe, grab DD, for instance.
And there, we can see
that the three DD processes are running as expected.
Now, if you want to have information
about a performance as well, I would say go for top
because top is giving you this nice interface
in which you can see all the properties
of the process being updated in real time.
if stuff is changing.
Now the next thing we needed to do,
is change the process priority so that one
of these three jobs gets double the amount of CPU resources.
So that will be our, from the top interface to re nice
I'm picking 6, 6 20, and I wanted to have a higher priority.
Well, let's give it the priority
of minus 10 and then let's observe.
And here we can see after one polling loop
that this process 6, 6, 6 2 0 is 66, 20 is staying
on processor number zero, and it's getting
about a hundred percent of CPU cycles.
And that is all.
Now we need to terminate all three processes.
The easiest way to do so is by using kill all, kill all DD
will terminate all of them.
And you can see kill is telling that four
the three processes and they are now all gone.
And that is what you needed to do in this lab.