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