Linux process priorities demystified
sigma-star.at·17h·
Discuss: Lobsters
Flag this post

Simple questions often have not so simple answers. One example is the question, What priority does this process have? This question normally comes up when a customer asks us to explain choices made by the CPU scheduler.

To answer it we need to discuss further sub-questions.

  1. What thread of the process are you interested in?
  2. What scheduling policy has this thread?
  3. Who gave us the process priority we’re looking into?

Processes? Threads? Tasks?

Like most operating systems Linux supports threads, which can be seen as a distinct execution flow. In the simplest case we have a process with just one thread, the main thread. While a thread models the execution flow, a process models shared resources between threads. The most prominent resource is memory. Within a pro…

Similar Posts

Loading similar posts...