今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Scheduling: nice, priorities, and process classes - Linux教程
课程: Linux Performance Tuning
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…