Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about Sleep()

Status
Not open for further replies.

Tizza

Technical User
Aug 23, 2006
3
CA
Hi All

I have a question about the Sleep() function in PHP. When i am running a script, and the sleep function kicks in, are any resources used up? I would think something is as it needs to hold the script in memory but is it enough to lets say have 100+ scripts in memory in a sleep mode until it can continue or will the system crash if there are a lot of scripts resident in memory?

Thanks!
 
You system will definately slow and may eventually crash when too many scripts are run at once. The exact value of "too many", by how much it will slow depends and whether t will crash all three depend on your environment.

Yes, any running script uses resources: memory to hold the interpreted script, program pointers, variable store, etc.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top