Limit Cpu Use Of Threads
i have a problem : my c++ application is sometimes using 99 up to 100% of the CPU.
How can i limit this to 50% max?
thanks for any help.
If there are no other processes on the system that are active, this may be okay.
The best starting place is to alter prioirty before you try setrusage(). You can use nice to be sure that when your prgram is running and top shows it using lots of cpu, it is not competing with anyone else.
|All times are GMT -5. The time now is 11:35 PM.|