acassis commented on PR #6512:
URL: https://github.com/apache/incubator-nuttx/pull/6512#issuecomment-1166292513

   > > > 
   > > 
   > > 
   > > Thanks for your review. Yes this will have impact on scheduler and needs 
to be dealt with carefully. But I am not sure under which case can this make 
the system not real-time. Sched_lock will not disable interrupts, though some 
work in hpwork will be delayed, they will be done after the print is finished. 
Maybe the delay of hpwork is what you are talking about? In RR schedule, this 
pr surely will bring in some delay for higher priority task, but the delay can 
be predicted from uart baud-rate and print length.
   > > Am I understanding the system and real-time correctly?
   > 
   > With `sched_lock` if the printing is done from a lower priority task, then 
higher priority will not start execution until the scheduler is unlocked so 
here we are loosing the real-time.
   
   Exactly!!! I think even with priority  inheritance the issue will happen!


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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

Reply via email to