Thanks Rob. I did some reading up on this. I think what I want when i try to do getrlimit( RLIMIT_RTPRIO, &rlim ); is rlim.rlim_cur = 0, rlim.rlim_max = -1 so that the user can use sched_setscheduler.
On ubuntu, I could use sched_setscheduler. But on debian, I can't. This could be because on Ubuntu the following holds while on Debian it is I'm trying to figure out how to set the above. or any other way is also fine. Thanks, Aravind.
