Is Thread.Priority ignored on Linux? #59160
-
I'm running a netcoreapp3.1\linux-arm build of my application on a fairly vanilla Debian platform. I want one thread running at higher priority than the others but setting Thread.Priority=Highest doesn't seem to be having any effect. I can see (using 'top -H') that all the native threads are running at normal priority and this is consistent with the behaviour of my application. I've tried running as root and setcap 'cap_sys_nice=+ep' to no effect. Am I missing something or is this just not going to work? Thanks, Martin |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
runtime/src/coreclr/pal/src/thread/thread.cpp Lines 1042 to 1221 in 072cbae |
Beta Was this translation helpful? Give feedback.
Thread.Priority
is converted to posix priority here:runtime/src/coreclr/pal/src/thread/thread.cpp
Lines 1042 to 1221 in 072cbae