Login   Register  
PHP Classes
elePHPant
Icontem

Running this script uses 100% of the cpu.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      SuperSocket  >  All threads  >  Running this script uses 100% of the cpu.  >  (Un) Subscribe thread alerts  
Subject:Running this script uses 100% of the cpu.
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 cpu.   Reply  
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 cpu.   Reply  
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