UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 50365

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

Description

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

Solution

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 Created 06/07/2012
Last Updated 09/23/2014
Status Active
Type General Article
Devices
  • SoC
  • FPGA Device Families
Tools
  • EDK - 14.1
  • EDK - 14.2
  • EDK - 14.3
  • More
  • EDK - 14.4
  • EDK - 14.5
  • EDK - 14.6
  • EDK - 14.7
  • Less