The Thread classIntroductionWhen the start method of a Thread is invoked, the run method code will be executed in separate Thread, in parallel. After the run method is executed the Thread will exit immediately, it will be joined with the creating Thread at the appropriate time. Warning
Relying on the engine to determine when a Thread should join may cause undesirable behaviour; the programmer should be explicit, where possible. Class synopsisThread
class Thread
extends
Threaded
implements
Countable, Traversable, ArrayAccess {
/* Methods */
public int getCreatorId()
public static Thread getCurrentThread()
public static int getCurrentThreadId()
public int getThreadId()
public bool isJoined()
public bool isStarted()
public bool join()
public bool start(int
$options = ?)/* Inherited methods */
public array Threaded::chunk(int
$size , bool $preserve )public int Threaded::count()
public bool Threaded::extend(string
$class )public bool Threaded::isRunning()
public bool Threaded::isTerminated()
public bool Threaded::merge(mixed
$from , bool $overwrite = ?)public bool Threaded::notify()
public bool Threaded::notifyOne()
public bool Threaded::pop()
public void Threaded::run()
public mixed Threaded::shift()
public mixed Threaded::synchronized(Closure
$block , mixed ...$args )public bool Threaded::wait(int
}$timeout = ?)
|