From the course: Linux Performance Tuning

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Scheduling: nice, priorities, and process classes

Scheduling: nice, priorities, and process classes - Linux Tutorial

From the course: Linux Performance Tuning

Start my 1-month free trial

Scheduling: nice, priorities, and process classes

- [Instructor] So when we talk about scheduling, we're talking about having the Linux kernel and it's the scheduler function in the kernel choosing which thread or process, or in the kernel they use the word, task, which thing to run when a CPU becomes available. And if there's more things ready to run than cores, then that can be an important decision. It's the scheduling class nice value, priority and potentially other factors can be taken into account in the scheduler's decision. Some of the other factors include the User ID. One user that's already running some processes when they try to run something else in addition, they get aggregate the same amount of time as somebody else so one particular user can't dominate the system by trying to run lots of stuff. And a process that's been using the CPU a lot already will get a little less time in the future. So every task is associated with a scheduling class. And these names correspond to what can be done in the code. But for the most…

Contents