wanna restrict the cpu usage for my own script
Posted: Tue Sep 05, 2006 7:08 am
Our database transfer script puts the cpu usage on the server (xampp on Win2000) to 95%. This script may run in background. What I want is, that the script pauses so that the server stays available for other users. I tried with usleep(30) but the result is not very impressing. Does anybody solved a similar problem with a proper solution?