AR# 50365


EDK - Xilkernel - Can I change the thread priority dynamically?


After creating threads on Xilkernel, is it possible to change the priority of the threads dynamically?


The priority is one of the parameters for the scheduler. 

You can change the parameters dynamically using the API below.

int pthread_setschedparam(pthread_t thread, int policy, const struct sched_param *param)

You can also get the parameter using the following API:

int pthread_attr_getschedparam(pthread_attr_t* attr, struct sched_param* schedpar)


AR# 50365
Date 09/23/2014
Status Active
Type General Article
Tools More Less
People Also Viewed