Does anyone know how I can keep my program from using 99% of my cpu percentage every time I run it? Is there a way to set some kind of limit, like say 10%?
I have looked at <sys/resource.h> extensively, and all I have found is that it only allows the setting of memory limits.
Please tell me if I have missed something or please point me in the direction of a header that does this.
Thanks so much!