Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Trouble with PTHREAD

$
0
0
I am trying to run a program that creates POSIX threads and trying to assign priority to these events.

I am getting the error 'Operation not Permitted' whenever I try to create a new thread. This is a recent problem which had not occurred previously with SUSE so I am not sure why this application stopped running, but it stopped running after i re-installed the SUSE software. Maybe I forgot a package or something is the only thing that sounds reasonable.

I have tired this suggestion I found from an Ubuntu user on another thread which sounds reasonable but didn't seem to fix the problem:

On my version of Ubuntu (and probably yours too) there's also a hard limit of zero, so you can't simply use ulimit or setrlimit to raise this. One way to raise the hard limit is to add a line to/etc/security/limits.conf like this (replacing <username> with your username):
<username> hard rtprio 99hen you should be able to use ulimit (from the shell) or setrlimit (from your program) to set the soft limit to the priority you need; alternatively, you could set that automatically by adding a second line to limits.conf, replacing hard with soft.


> ulimit -Hr # show hard limit
99
> ulimit -r
0
> ulimit -Sr 1 # set soft limit
> ulimit -r
1

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>