(PECL pthreads >= 2.0.0)
Thread::getThreadId — ʶ��
���������̵߳�ID
�˺���û�в�����
�߳�ID�����ָ�ʽ
Example #1 ���������̵߳�ID
<?php
class My extends Thread {
public function run() {
printf("%s is Thread #%lu\n", __CLASS__, $this->getThreadId());
}
}
$my = new My();
$my->start();
?>
�������̻������
My is Thread #123456778899