4 ms·
Shotgun solution: make the target fn be a process. Have a 2nd process be a watchdog and kill the target process if it exceeds the time limit. Design the arch of
by mkramlich 15y ago
Shotgun solution: make the target fn be a process. Have a 2nd process be a watchdog and kill the target process if it exceeds the time limit. Design the arch of this system such that no matter what the target proc was doing precisely when killed, that the system can recover/resume reasonably well.