Hello Friends will come back.
Welcome to the part two of process management class.
OK.
In this lesson we're going to learn how to set up a priority of an process.
With the help of nice and very nice.
Come on.
And also how to get a process with the help of kill and kill all come on again.
And also we're going to learn that different kinds of signals that are available to process.
OK.
So first of all let's see the nice.
Come on.
OK.
So let's see practically.
First of all let's see here and the top Come on.
And here you can see the top command currently executed by me that means the patient user.
And you can see here the priorities Turkey.
OK.
So who changes priority you need to type in the command like for us.
Do you need an administrator level privilege.
OK so pseudo nice.
Then and then the amount of value that we want to choose from that are already existing pretty OK.
You can set the priority going process from minus 20 to plus 19.
OK.
So here I would like to be treated by 15 then come on then.
OK.
Now here you can see the prototype is generally here from 30 to 15.
In this way you can set up the properties of process.
OK.
With the help of nice.
Come on.
OK let's read in top.
Come on.
OK.
The priorities set back 220 because i log out and log in again here.
So Press Control see this process.
OK.
Now when do you hope to use.
Very nice.
Come on.
So you're very nice.
Come on just use a really nice and then proud that you want to sit.
So I want to sit here.
D minus 10 then Dear iPhone you iPhone you for a user.
I want to see the browser default Prashanth so it enter.
It says permission denied.
So just you see I need to enter into your password and now lives here.
Here you can see the priority of oppression is reduced to then.
OK.
In this way you can set the priorities off nice and really nice.
Come on.
So the next come on that let me show you is Gil.
So the kill command is used to kill any process that is running on your system again.
So you need to provide a process Id kill the process.
Suppose there is a process of stop listening to Background.
And here you can see it displays here the process Id kill that you just need to provide 1 5 0 9.
And here you can see this place in the process is stopped.
So by default it sends a signal number 15.
There are different signals there are total of 64 signals that you can send here with the help of kill
command to list all the signals just type on.
And here you can see these are the signals.
OK.
You can send to the process.
OK.
Let's see the process.
OK here you can see it is showing the process stop here.
When we execute the come on this.
So for nine foot nine here you can see in the above list.
Absolute kill signal or just kill the process completely.
So this idea the process 1 0 9 and here you can see it shows the message.
Let's see.
And now you can see here there is no top process.
It's showing here with the piers come on in this way here it signals having its own importance.
And if you want to go into the dirt you just need to type man and kill.
And here you can see it shows all the things that you can do with the Kill come on and you can apply
this logic to every Come on if you want to go into the depth that is suppose you want to.
One goes into depth four nights and then simply to this and you can see all the things that you can
do with a nice cover.
OK.
In this way you can control the behavior of processes by setting up their priorities and also process
if some process is causing a problem by sending different signals.
OK.
Most powerful signal leads minus nine.
OK no final come on that issue is good.
All that will all come out.
You can get a process by its name.
You go to pro-white the process ID of that process.
OK.
So suppose there is a process of learning and the background.
So to kill this this type come on like this and process them and here you can see it display the message.
The process is still
ok by providing signalized.
No it just blows.
The processes are like CPS.
OK now there is no processes running there.
So in this way you can control the behavior of processes and make sure your system is running faster.