On Thu, Oct 31, 2002 at 07:53:25PM +0200, Osman Ç?nar Eren wrote: > #define POLICY1 SCHED_FIFO > #define POLICY2 SCHED_RR > #define PRIORITY1 160//30 > struct sched_param sparam; > > > sparam.sched_priority=PRIORITY1; > succ=pthread_setschedparam(pthread_self(), POLICY1,&sparam ); > > however succ returns EINVAL, but none of POLICY1 and sparam seems incorrect. > should i call another function? EINVAL policy is not one of SCHED_OTHER, SCHED_RR, SCHED_FIFO EINVAL the priority value specified by param is not valid for the specified policy That "160//30" piece looks kinda funny to me; it might be triggering the second reason for the EINVAL error... -- Too bad life doesn't have a :q! command.
Attachment:
pgp00195.pgp
Description: PGP signature