RE: Unable set the priority for a pthread through pthread_setschedparam

"Srinivas G." <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <F5BA82141F7AA94885B9643C77EEA5F2103D80@mail.esntechnologies.co.in>
Glynn wrote:

> > domain       type    item     value
> > #@srinivasg  soft    rtprio   100
> 
> First, as Ben says, you must uncomment the line. Second, you may also
> need to set the hard limit. You can use "ulimit -a" (or -aH) to check
> the actual limits.

Thanks Glynn.

I am able to run the programs as a normal user after setting the soft as
well as hard values in /etc/security/limits.conf values. However,
without setting the hard limit, I am not able to run the programs. So,
by setting the soft and hard values to 100, I am able to run.

domain       type    item     value
@srinivasg  	 soft    rtprio   100
@srinivasg   hard    rtprio   100

Thanks for the right information.

With Regards,
Srinivas G
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.