Skip to content

Is Thread.Priority ignored on Linux? #59160

Answered by huoyaoyuan
packaman asked this question in Q&A
Discussion options

You must be logged in to vote

Thread.Priority is converted to posix priority here:

PAL_ERROR
CorUnix::InternalSetThreadPriority(
CPalThread *pThread,
HANDLE hTargetThread,
int iNewPriority
)
{
PAL_ERROR palError = NO_ERROR;
CPalThread *pTargetThread = NULL;
IPalObject *pobjThread = NULL;
int st;
int policy;
struct sched_param schedParam;
int max_priority;
int min_priority;
float posix_priority;
palError = InternalGetThreadDataFromHandle(
pThread,
hTargetThread,
&pTargetThread,
&pobjThread
);
if (NO_ERROR…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@packaman
Comment options

Answer selected by packaman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants