fi3ldy Posted January 8, 2007 Share Posted January 8, 2007 (edited) After doing some searching i came across a few reasons for high cpu usage other people have experienced, i attemoted to edit my script as advised and nothing, all i could find my script had from the possible reasons for high cpu usage was sleep(), which i tryed removing and no success. I cannot post the script because it is HUGE! Can you guys give me any possible reasons for high cpu usage or functions known to cause it. This is weird as i have a login script in my application, the high CPU only flys up at 100% AFTER i have logged in, ive looked throught at everything that goes on after the login, and theres nothing suspicious i could foind which would cause this. Any hlep appriciated, thanks alot. Edited January 8, 2007 by fi3ldy Link to comment Share on other sites More sharing options...
herewasplato Posted January 8, 2007 Share Posted January 8, 2007 ...reasons for high cpu usage was sleep(), which i tryed removing and no success...Removing??? You should add sleep to give the CPU a rest - just like humans. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
fi3ldy Posted January 8, 2007 Author Share Posted January 8, 2007 (edited) rofl ill give it a try, always thought of it as holding the program, but obv not! EDIT: oh look at that, added one sleep() to a while and its fine! thx alot lol Edited January 8, 2007 by fi3ldy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now