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

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

Start my 1-month free trial

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…

Contents