cant use of pthread_setschedparam on opensuse 11.4 with kernel 2.6.37.1-1.2

i am writing an application with c++ and NetBeans on opensuse 11.4 with kernel 2.6.37.1-1.2, (logged in as root)This application creates a thread and when runs

sched_param param;
param.__sched_priority = -1;
policy = SCHED_FIFO;
param.__sched_priority = 50;
result = pthread_setschedparam(m_thread,policy,&param);

result = 1(EPERM (not permitted)) why? thanks.

Am 13.11.2011 13:06, schrieb amin63:
>
> i am writing an application with c++ and NetBeans on opensuse 11.4 with
> kernel 2.6.37.1-1.2, (logged in as root)This application creates a
> thread and when runs
>
> sched_param param;
> param.__sched_priority = -1;
> policy = SCHED_FIFO;
> param.__sched_priority = 50;
> result = pthread_setschedparam(m_thread,policy,&param);
>
> result = 1(EPERM (not permitted)) why? thanks.
>
>
Look at this thread http://tinyurl.com/82bsbjh
you will notice if you never updated your kernel it will not work, so
double check after update and reboot what uname -r shows you, it should
show the version number 2.6.37.6-0.9, since you have 2.6.37.1-1.2 now I
suspect you are out of luck without update.

Solution run yast online update or run


sudo zypper patch

to apply the security updates for the kernel (and not only for that).


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

Am 13.11.2011 13:06, schrieb amin63:
>
> i am writing an application with c++ and NetBeans on opensuse 11.4 with
> kernel 2.6.37.1-1.2, (logged in as root)

I hope I just read this the wrong way, does this mean you log into the
GUI as root and run the netbeans ide as root?
Never do this. Search the forums why not.
If I understood that wrong, ignore this.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

thanks, i update to 2.6.39.4-1.2 and solved

Am 14.11.2011 09:26, schrieb amin63:
>
> thanks, i update to 2.6.39.4-1.2 and solved
>
>
That was not needed to upgrade the kernel, it would have been enough
just to apply the security update which comes on the normal update channel.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram

i upgrade kernel offline because we have a proxy(with username password) in our company for connetion to internet, when i set proxy and proxyAutehntication in proxy configuration i cant connect to proxy and i get an error (HTTP/1.0 403 forbidden)

Am 16.11.2011 13:06, schrieb amin63:
>
> i upgrade kernel offline because we have a proxy(with username password)
> in our company for connetion to internet, when i set proxy and
> proxyAutehntication in proxy configuration i cant connect to proxy and i
> get an error (HTTP/1.0 403 forbidden)
>
You can also use the normal update offline by downloading the delta rpm
for the kernel from the update repository.
But your problem is any way solved, I just wanted to make it clear.


PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram