Even if you kill() a thread, the isStarted() method will still return true.(PECL pthreads >= 2.0.0)
Thread::isStarted â çść ăć¤ĺşăă
ăăŽăšăŹăăăéĺ§ăăăăŠăăă調ăšăžăă
ăăŽé˘ć°ăŤăŻăăŠăĄăźăżăŻăăăžăăă
äž1 ăšăŹăăăéĺ§ăăăăŠăăăć¤ĺşăă
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>ä¸ăŽäžăŽĺşĺăŻäťĽä¸ă¨ăŞăăžăă
bool(true)
Even if you kill() a thread, the isStarted() method will still return true.