# Pthread\_setchedparam error in grc

**URL:** <https://www.ruby-forum.com/t/pthread-setchedparam-error-in-grc/219116>\
**Category:** GNU Radio\
**Created:** [April 20, 2012, 11:03pm UTC](https://www.ruby-forum.com/t/pthread-setchedparam-error-in-grc/219116 "2012-04-20T23:03:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 20, 2012, 11:03pm UTC](https://www.ruby-forum.com/t/pthread-setchedparam-error-in-grc/219116/1 "2012-04-20T23:03:47Z")

</div>

## Hello, I’m receiving a pthread\_setchedparam error when running grc projects under Ubuntu 11.04. After reading a post from Almohanad F. in an archive of this mailing list, I decided to try adding kernel.sched\_rt\_runtime\_us = -1 to my /etc/sysctl.conf file. This did change the thread priority which I was able to verify with cat /proc/sys/kernel/sched\_rt\_runtime\_us. However, I got the same error in grc. Thus far, the only thing that will get rid of this error is if I run grc as root. I never had to run it as root on my Ubuntu 10.04 machine though. Is there a setting that I can change so that grc doesn’t need to be ran as root to be able to use scheduling? Thanks!

View this message in context:  
[http://old.nabble.com/pthread\_setchedparam-error-in-grc-tp33722768p33722768.html](http://old.nabble.com/pthread_setchedparam-error-in-grc-tp33722768p33722768.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![labarowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f0a364/32.png) [@labarowski](https://www.ruby-forum.com/u/labarowski)\
**Post date:** [April 21, 2012, 2:52am UTC](https://www.ruby-forum.com/t/pthread-setchedparam-error-in-grc/219116/2 "2012-04-21T02:52:56Z")

</div>

On 04/20/2012 02:02 PM, labarowski wrote:

> doesn’t need to be ran as root to be able to use scheduling? Thanks!  
> Does this help?  
> [http://files.ettus.com/uhd\_docs/manual/html/general.html#thread-priority-scheduling](http://files.ettus.com/uhd_docs/manual/html/general.html#thread-priority-scheduling)

-josh

---

<div class="post-metadata">

**Author:** ![labarowski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f0a364/32.png) [@labarowski](https://www.ruby-forum.com/u/labarowski)\
**Post date:** [April 21, 2012, 8:13am UTC](https://www.ruby-forum.com/t/pthread-setchedparam-error-in-grc/219116/3 "2012-04-21T08:13:06Z")

</div>

Exactly what I was looking for Josh. Grc gave a prompt to check the  
documentation along with the error but I was unable to find this. Thanks  
and I’m sorry to bother you with something that should have been  
apparent with a little searching - I just wasn’t looking in the right  
places.
