You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/26 17:35:55 UTC

[GitHub] [incubator-nuttx] patacongo edited a comment on issue #2935: Bug: sporadic scheduling does not work for multiple threads

patacongo edited a comment on issue #2935:
URL: https://github.com/apache/incubator-nuttx/issues/2935#issuecomment-786783311


   >     * When I configure the application with one sporadic thread and one FIFO thread (with lower priority and 100% CPU utilization), budget enforcement works well.
   
   I think in this case, to observe the full range of behaviors, you would need a 3 threads.  The two that you are using now: 
   
   * A low priority thread that uses the FIFO scheduler and attempt to use 100% of the CPU
   * A medium priority thread that uses the sporadic scheduler.
   
   And also:
   
   * A high priority FIFO thread that interrupts the sporadic thread frequently and causes it to take action to assure fixed CPU bandwidth.
   
   Without this high priority thread, it might be the case the sporadic scheduler is just broken and has nothing to do with two sporadic threads.
   
   When I tested this many years ago, I added GPIO outputs from the OS task scheduler hooks.  Then I could see the task behavior on a logic analyzer.  I don't think anyone has used the sporadic scheduler since then and the case with it could suffer from bit rot or is not properly verified.


----------------------------------------------------------------
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:
users@infra.apache.org