WEBVTT

00:09.080 --> 00:11.260
Hello Friends will come back.

00:11.260 --> 00:14.490
Welcome to the part two of process management class.

00:14.610 --> 00:15.090
OK.

00:15.220 --> 00:20.140
In this lesson we're going to learn how to set up a priority of an process.

00:20.290 --> 00:22.150
With the help of nice and very nice.

00:22.150 --> 00:22.830
Come on.

00:23.050 --> 00:28.980
And also how to get a process with the help of kill and kill all come on again.

00:29.110 --> 00:35.540
And also we're going to learn that different kinds of signals that are available to process.

00:35.670 --> 00:36.130
OK.

00:36.280 --> 00:39.820
So first of all let's see the nice.

00:39.820 --> 00:40.240
Come on.

00:40.240 --> 00:40.600
OK.

00:40.630 --> 00:42.720
So let's see practically.

00:43.000 --> 00:46.650
First of all let's see here and the top Come on.

00:46.810 --> 00:53.670
And here you can see the top command currently executed by me that means the patient user.

00:53.800 --> 00:56.820
And you can see here the priorities Turkey.

00:56.910 --> 00:57.380
OK.

00:57.490 --> 01:03.630
So who changes priority you need to type in the command like for us.

01:03.710 --> 01:05.880
Do you need an administrator level privilege.

01:05.880 --> 01:09.150
OK so pseudo nice.

01:09.430 --> 01:19.610
Then and then the amount of value that we want to choose from that are already existing pretty OK.

01:19.780 --> 01:25.940
You can set the priority going process from minus 20 to plus 19.

01:26.130 --> 01:26.530
OK.

01:26.620 --> 01:33.010
So here I would like to be treated by 15 then come on then.

01:33.560 --> 01:34.020
OK.

01:34.160 --> 01:41.140
Now here you can see the prototype is generally here from 30 to 15.

01:41.620 --> 01:45.360
In this way you can set up the properties of process.

01:45.430 --> 01:45.740
OK.

01:45.790 --> 01:47.320
With the help of nice.

01:47.320 --> 01:48.000
Come on.

01:48.220 --> 01:49.360
OK let's read in top.

01:49.360 --> 01:50.140
Come on.

01:50.380 --> 01:50.710
OK.

01:50.720 --> 01:55.780
The priorities set back 220 because i log out and log in again here.

01:56.110 --> 02:00.140
So Press Control see this process.

02:00.160 --> 02:00.700
OK.

02:00.850 --> 02:02.930
Now when do you hope to use.

02:02.930 --> 02:03.400
Very nice.

02:03.400 --> 02:04.100
Come on.

02:04.330 --> 02:05.880
So you're very nice.

02:05.890 --> 02:12.400
Come on just use a really nice and then proud that you want to sit.

02:12.400 --> 02:14.690
So I want to sit here.

02:14.810 --> 02:22.270
D minus 10 then Dear iPhone you iPhone you for a user.

02:22.780 --> 02:27.170
I want to see the browser default Prashanth so it enter.

02:27.390 --> 02:29.410
It says permission denied.

02:29.530 --> 02:39.220
So just you see I need to enter into your password and now lives here.

02:39.340 --> 02:44.580
Here you can see the priority of oppression is reduced to then.

02:44.680 --> 02:45.180
OK.

02:45.370 --> 02:49.840
In this way you can set the priorities off nice and really nice.

02:49.840 --> 02:50.650
Come on.

02:51.010 --> 02:54.130
So the next come on that let me show you is Gil.

02:54.340 --> 02:59.310
So the kill command is used to kill any process that is running on your system again.

02:59.590 --> 03:03.770
So you need to provide a process Id kill the process.

03:03.770 --> 03:07.680
Suppose there is a process of stop listening to Background.

03:08.020 --> 03:17.570
And here you can see it displays here the process Id kill that you just need to provide 1 5 0 9.

03:18.100 --> 03:22.100
And here you can see this place in the process is stopped.

03:22.270 --> 03:26.120
So by default it sends a signal number 15.

03:26.130 --> 03:33.700
There are different signals there are total of 64 signals that you can send here with the help of kill

03:33.700 --> 03:38.470
command to list all the signals just type on.

03:38.650 --> 03:40.940
And here you can see these are the signals.

03:41.080 --> 03:41.470
OK.

03:41.530 --> 03:43.600
You can send to the process.

03:43.600 --> 03:44.230
OK.

03:44.810 --> 03:46.840
Let's see the process.

03:46.900 --> 03:51.240
OK here you can see it is showing the process stop here.

03:51.370 --> 03:54.270
When we execute the come on this.

03:54.350 --> 04:01.430
So for nine foot nine here you can see in the above list.

04:01.510 --> 04:06.230
Absolute kill signal or just kill the process completely.

04:06.370 --> 04:14.590
So this idea the process 1 0 9 and here you can see it shows the message.

04:14.800 --> 04:16.140
Let's see.

04:16.140 --> 04:19.820
And now you can see here there is no top process.

04:20.150 --> 04:27.800
It's showing here with the piers come on in this way here it signals having its own importance.

04:28.470 --> 04:34.050
And if you want to go into the dirt you just need to type man and kill.

04:34.150 --> 04:39.760
And here you can see it shows all the things that you can do with the Kill come on and you can apply

04:40.090 --> 04:46.190
this logic to every Come on if you want to go into the depth that is suppose you want to.

04:46.410 --> 04:53.710
One goes into depth four nights and then simply to this and you can see all the things that you can

04:53.710 --> 04:55.240
do with a nice cover.

04:55.520 --> 04:55.940
OK.

04:56.080 --> 05:03.750
In this way you can control the behavior of processes by setting up their priorities and also process

05:03.810 --> 05:08.090
if some process is causing a problem by sending different signals.

05:08.090 --> 05:08.530
OK.

05:08.710 --> 05:11.680
Most powerful signal leads minus nine.

05:11.740 --> 05:14.460
OK no final come on that issue is good.

05:14.490 --> 05:16.560
All that will all come out.

05:16.570 --> 05:19.390
You can get a process by its name.

05:19.390 --> 05:23.150
You go to pro-white the process ID of that process.

05:23.260 --> 05:23.800
OK.

05:23.920 --> 05:29.190
So suppose there is a process of learning and the background.

05:29.410 --> 05:37.590
So to kill this this type come on like this and process them and here you can see it display the message.

05:37.600 --> 05:38.920
The process is still

05:42.600 --> 05:44.160
ok by providing signalized.

05:44.170 --> 05:46.300
No it just blows.

05:46.480 --> 05:49.340
The processes are like CPS.

05:49.410 --> 05:52.570
OK now there is no processes running there.

05:52.870 --> 06:00.020
So in this way you can control the behavior of processes and make sure your system is running faster.
