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.
|