KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm running Apache on Linux within VMWare. One of the PHP pages I'm requesting does a sleep() , and I find that if I attempt to request a second page whilst the first page is sleep()'ing , the second page hangs, waiting for the sleep() from the first page to finish. Has anyone else seen this behaviour? I know that PHP isn't multi-threaded , but this seems like gross mishandling of the CPU. Edit : I should've mentioned that the CPU usage doesn't spike. What I mean by CPU "hogging" is that no other PHP page seems able to use the CPU whilst the page is sleep()'ing.
Tags (comma-separated)
Save Edits
Cancel