Hi, I have a little problem and I cannot find an answer anywhere.
I'm developing my own application in C++ which does lots of calculations and uses FreeGLUT and GTK+. Sometimes I make an error and it gets into a neverending loop. This freezes my entire operating system. Btw. I'm using FC 5 and GNOME. I cannot kill the process, I cannot use mouse or keyboard, so I cannot run another terminal to kill it. It just gets stuck, or extremely slow.
Now, what I need. When starting this process in a terminal, I would need to tell my operating system, that this process is "bad"

How can I run this process so that it cannot eat up all computing time of my operating system? Or maybe is there a demon, or something like that, which would kill it after some time? It's so stupid to restart my computer everytime this happens. I usually need two or three runs before I find the mistake.
Thanks for help.
Vasek