real-time schedulers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

i try to make my process realtime with the call;

#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?

thanks in advance.
best regards.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux