Linux can execute threads simultaneously on different CPU cores and time-share a core among more runnable threads than it can run at once. The scheduler makes those choices according to scheduling policy, priority, affinity, and workload. A nice value is one input for ordinary time-sharing policies.
Processes · Lesson 8
Niceness
Learn how nice values influence CPU scheduling weight for ordinary Linux processes.