# Set low priority (nice value) for this process... setpriority( "PRIO_PROCESS", 0, 10 ); while(1) { # some code # some more code ... sleep(300); # it's good to take a nap in the middle of a hard work! }