in reply to Prevent "Out of Memory" error
... see linux memory leak monitor for a Tk memory monitor, from which you can extract the memory code..... which reads it right from /proc.... it's just a hack, because it won't adjust for varying system loads, but maybe you could parse outputs of mem, and top, then use some internal logic to introduce more microsecond delays in the main thread....you may even discover a new algorithm which you could sell to google..
...call it Gyro...... a dynamic top :-) .... a differential equation between mem and system load
|
|---|