# UHD Warning: Unable to set the thread priority

**URL:** <https://www.ruby-forum.com/t/uhd-warning-unable-to-set-the-thread-priority/241575>\
**Category:** GNU Radio\
**Created:** [April 16, 2015, 5:17am UTC](https://www.ruby-forum.com/t/uhd-warning-unable-to-set-the-thread-priority/241575 "2015-04-16T05:17:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 16, 2015, 5:17am UTC](https://www.ruby-forum.com/t/uhd-warning-unable-to-set-the-thread-priority/241575/1 "2015-04-16T05:17:58Z")

</div>

Hi:  
I had some trouble when running my C++ program. The console message  
is:  
UHD Warning:  
Unable to set the thread priority. Performance may be negatively  
affected.Please see the general application notes in the manual for  
instructions.EnvironmentError: OSError: error in pthread\_setschedparam.  
I have tried the method as:

\<\<\<Add the following line to /etc/security/limits.conf:

@myusername - rtprio 99\>\>\>

but it doesn’t seem to work.

```
     I ran the program with Eclipse in Linux(Ubuntu)

```

environment,Can anyone give me some suggestions about this？

Best regards!!

Yang
