saramonteiro opened a new pull request #516:
URL: https://github.com/apache/incubator-nuttx-apps/pull/516


   ## Summary
   This PR intends to add a set of examples: The watcher and the watched 
examples. They were designed to work together.
   The watcher is a task that will monitor other tasks that subscribed to be 
watched.
   If a subscribed task doesn't request the watcher to feed the dog before the 
timeout completes, the watcher prints the name of all currently subscribed 
tasks exposing which one(s) starved the dog.
   
   ## Impact
   The watcher may serve as a helper to identify offending tasks in 
applications with multiple tasks.
   The watched example shows how to subscribe, to request the watcher to feed 
the dog, and also how to unsubscribe. The watched example also exposures the 
functionality by creating 2 tasks that will starve the dog and 2 other tasks 
that will feed the dog. Try it!
   Besides it, this set of examples may serve as a great source to learn:  
   - how to use signals
   - how to use the watchdog
   - how to create a ramdisk device, create a FAT filesystem on this, and mount 
it
   - how to use the Noteram Device to get some useful information like the 
tasks' names.
   
   ## Testing
   The watched example serves as a validation test for the watcher.
   


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