Wed Apr 23, 2014 3:58 pm
On a uni-processor with a looping task (no external calls) you've very little chance even with a watchdog if you get an un-interupptable process running. Those things need a hardware process to get control back (like the Linux magic keys).
With normal userspace programming the stuff that runs there spends lots of time waiting for i/o events (and even longer if there's a human involved). The detection of long running tasks is a lot easier, depending on whether the dispatcher is pre-emptive or reactive. With Raspbian it's built with the pre-emptive options set for both kernel (hey, that's new since I last built a kernel) and userspace so it's a very robust system.
The likelihood of triggering any watchdog for a userspace program is so small it's probably not worth the effort of setting one up.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Criticising any questions is banned on this forum.
Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.