Represents a thread running concurrent to other threads.
PHP doesn't support threads (exception). In most cases threads are no good idea. But they can be useful while working with external resources like network connections.
All your threads will run on one CPU. These are virtual threads.
You can directly download the source code:
How To UseCreate two threads and let them run concurrently:
Located in /Thread.php (line 77)
Runs all threads until they are finished.
While execution new threads can be created and will be executed, too.
Creates a new thread.
Important: Your subclass has to call parent::__construct().
Returns True, if the execution is finished.
Blocks until this thread is finished. Other threads are executed, too.
But it is unknown, if they are finished or not.
Makes only one step in your computation.
Documentation generated on Sat, 08 Oct 2011 17:00:53 +0200 by phpDocumentor 1.4.3