Process Priority - Stream Priority

On Linux, a process is a collection of threads. Each thread has its own priority! But does the process have priority? If so, how does it differ from thread priority? And when a new process is created, how do these values ​​propagate?

+4
source share
1 answer

Linux implements (kernel level) threads essentially as processes. Thus, you return to the old old process priorities.

See NPTL and nice (for an understanding that processes are the first to have priorities). Basically, the default values ​​are applied - in the case of streams, the stream is a copy, so its priorities must also be copied. Will definitely change with different planners.

+1
source

Source: https://habr.com/ru/post/1339301/


All Articles