sebastianene07 opened a new pull request #1009:
URL: https://github.com/apache/incubator-nuttx/pull/1009


   ## Summary
   
   This patch adds support for preemptive scheduling in NuttX simulator build. 
It uses a host system timer to generate periodic signals which act like a 
hardware tick. A new defconfig has been added for the simulator build named 
```nsh3```.
   
   ## Impact
   
   The simulation would be more responsive using this approach, as we don't 
have to deliver the events from the ```Idle Task```. 
   If a task is ending up in an infinite closed loop, it will be preempted as 
opposed to locking the entire simulation.
   
   ## Testing
   
   To enable this feature : ``` CONFIG_SIM_PREEMPTIBLE ``` should be enabled 
from Kconfig.
   The patch can be tested by using this config:
   
   ```
   ./tools/configure.sh -a ../incubator-nuttx-apps sim/nsh3
   ```
   
   Testing the simulator build on OSX requires allocating ~128k of stack size 
for tasks.
   
   Signed-off-by: Sebastian Ene <nu...@fitbit.com>


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