From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Run a program with higher or lower priority than the default - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
Run a program with higher or lower priority than the default
- [Narrator] Linux process priorities are handled by a system called nice. Nice levels go from negative one, to negative 19 for privileged users. The scale goes from zero to 19 for non privileged users. The default nice level is zero. When a process is started it has a default nice level. The nice level is a number that reflects how nice the process is to the CPU. The nicer the process is to the CPU, the less it interrupts it, and the lower its priority is. Because the process is getting fewer resources from the CPU, it also has lower priority. This means other processes will get more CPU time than it will. If the nice level is less than zero, than it is less nice to the CPU, and demands more resources from it, thus having a higher priority for CPU time. In summary, the higher the nice number, the lower the CPU priority. The lower the nice number, the higher the CPU priority. Let's go to terminal to see how this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Select and sort processes for display7m 29s
-
Monitor active processes4m 33s
-
(Locked)
Send signals to processes6m 29s
-
(Locked)
Run a program with higher or lower priority than the default3m 13s
-
(Locked)
Run jobs in the foreground and background4m 18s
-
(Locked)
Signal a program to continue running after logout2m 1s
-
(Locked)
-
-
-
-
-