in reply to methods of recovering from ram issues
Before I'd consider complicating a script that's supposed to be doing "real" work with the seatbelts, warning labels, failsafes, et al to deal with even the two points of failure you've mentioned, I'd want to know how likely those are and what it will cost me if they occur without additional protection.
For example, re power failure: will the code (and storage and CPU cycles) to protect against loss of power, spike, surge or whatever cost more than
a) ...the cost of restarting the process from whatever was the state of affairs prior to the hypothetical failure? (Yes, this improperly ignores the costs incurred by whatever consequences of the outage develop because of or during the outage.)
b) ...an UPS and backup generator?
If the s/w is doing reactor control, yeah, we probably better have failsafe s/w... but if the s/w is adjusting the "lights on" time in a hobby-farm chicken coop, maybe it's not worth the programmer time to write the failsafes.
Bottom line: I know this doesn't answer the question you asked... but -- by way of apology -- hope I've offered some thoughts worth considering before you go charging off to build the next 'unsinkable' Titanic or Fukushima Dai-Ichi.
|
|---|