Why recursion may be the death of you

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

sm625

Diamond Member
May 6, 2011
8,172
137
106
7. Stack overflow in the "kitchen-sink" process would cause the OS to kill the process, and as this process had the watchdog code and error logging code, it would not be restarted, nor would any error codes be logged.

This has nothing to do with recursion. If a critical process dies then the OS must place the engine in the failsafe state, which means throttle in idle position. Clearly it wasnt doing that. None of the other stuff matters.
 

BikeJunkie

Golden Member
Oct 21, 2013
1,390
0
0
I could never work as a programmer for critical systems like this - I would seriously never be able to sleep.
 

Train

Lifer
Jun 22, 2000
13,586
82
91
www.bing.com
This has nothing to do with recursion. If a critical process dies then the OS must place the engine in the failsafe state, which means throttle in idle position. Clearly it wasnt doing that. None of the other stuff matters.

If the critical process dies BECAUSE of recursion, it has something to do with recursion. Especially if the regulation regarding this safety critical system says you are not allowed to use recursion.
 

BikeJunkie

Golden Member
Oct 21, 2013
1,390
0
0
Just because I'm curious about the constraints/standards imposed on such systems - and I've never done any embedded programming - how do programmers usually go about solving what would otherwise be trivial/mundane problems in your typical VM/GC development environment?