is it possible to force a ruby script to use up to certain amount of CPU and memory.
i dont want the script to be killed when it exceeds this specified amount. i just want it to run within the given constraints.
EDIT:
yes its an endless recursive loop that seems to use lot of CPU.
i noticed that doing return
at the end of each recursion is causing this. after i remove it, this high cpu usage is gone. what else can i use to terminate the loop ? exit ?