hello!
i seldom set policy in the process with C.
but recently i saw something write pthread_attr_setschedpolicy(&attr2,SCHED_RR);
is there some advantage about SCHED_RR in an OpenWrt process?
below is some info from redhat.com
SCHED_RR
is a modification ofSCHED_FIFO
. Threads with the same priority have a quantum and are round-robin scheduled among all equal prioritySCHED_RR
threads. This policy is rarely used.