Problem: I would like a "system" that monitors a process and would kill said process if:
- the process exceeds some memory requirements
- the process does not respond to a message from the "system" in some period of time
I assume this "system" could be something as simple as a monitoring process? A code example of how this could be done would be useful. I am of course not averse to a completely different solution to this problem. Thank you.