xiaoxiang781216 commented on a change in pull request #1009:
URL: https://github.com/apache/incubator-nuttx/pull/1009#discussion_r422613562



##########
File path: arch/sim/src/sim/up_initialstate.c
##########
@@ -73,6 +73,10 @@ void up_initial_state(struct tcb_s *tcb)
 #else
   int ret;
 
+#if CONFIG_RR_INTERVAL > 0
+  tcb->flags |= TCB_FLAG_SCHED_RR;

Review comment:
       Yes, because only the thread enable roundrobin policy, then we need to 
execute sched_roundrobin_process. There are other policies exist(e..g FIFO or 
SPORADIC).
   https://linux.die.net/man/2/sched_setscheduler




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to