So how is a process assigned a priority class? Well, when you call
CreateProcess, you can pass the desired priority class in the
fdwCreate parameter. Table 7-5 shows the priority class identifiers.
Table 7-5. Process Priority Classes
It might seem odd that the process that creates a child process chooses the priority class at which the child process runs. Let’s consider Windows Explorer as an example. When you use Windows Explorer to run an application, the new process runs at normal priority. Windows Explorer ...