discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] issues with thread priority


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] issues with thread priority
Date: Sat, 20 Feb 2016 15:57:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Hi Simone,

is your user allowed to set thread priority? See the Linux notes under [1].

Best regards,
Marcus

[1] http://files.ettus.com/manual/page_general.html#general_threading


On 02/19/2016 12:22 PM, Simone Ciccia S210664 wrote:
> Hello,
>
> I'm experiencing some issue trying to set block thread priorities.
>
> I discovered that my USRP is not able to set thread priorities since
> the function pthread_setschedparam(pthread_self(), policy, &sp); fails.
>
> Therefore, I tryed to test a simple block (whatever), inserting the
> core affinity to a processor (e.g. CPU 0) directly in the block GUI,
> then, in the block constructor I set the thread priority with
>
> gr::thread::set_thread_priority(gr::thread::get_current_thread_id(),99);
>
> The priority value is retrieved in the work function, and tells that
> the thread priority is set to 0 (wrong).
>
> I suspect that there is a limitation somewhere (probably in the linux
> kernel or in some configuration file), I tryed it on another machine
> without problems (all works correctly).
>
> Can you help me?
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]