PHP Classes

Running this script uses 100% of the cpu.

Recommend this page to a friend!

      SuperSocket  >  All threads  >  Running this script uses 100% of the...  >  (Un) Subscribe thread alerts  
Subject:Running this script uses 100% of the...
Summary:Package rating comment
Messages:2
Author:Neil Hearn
Date:2010-07-21 09:37:06
Update:2011-09-14 12:59:57
 

Neil Hearn rated this package as follows:

Utility: Good
Consistency: Good
Examples: Sufficient

  1. Running this script uses 100% of the...   Reply   Report abuse  
Picture of Neil Hearn Neil Hearn - 2010-07-21 09:37:06
Running this script uses 100% of the cpu. It would be nice if it could sleep until there is socket activity.

  2. Re: Running this script uses 100% of the...   Reply   Report abuse  
Picture of Colin Jenkins Colin Jenkins - 2011-09-14 12:59:57 - In reply to message 1 from Neil Hearn
just add a usleep(500) in the loop