id = $id.Join the community and post comments on the topics"> //PHP Multi Threading using pthreads $test = "Je test"; Class T


//PHP Multi Threading using pthreads $test = "Je test"; Class T - TopicsExpress



          

//PHP Multi Threading using pthreads $test = "Je test"; Class T extends Thread { public function __construct($id,$number,$sleep) { $this->id = $id; $this->number = $number; $this->sleep = $sleep; $this->start(); } public function run() { global $test; for ($i=0; $i < $this->number; $i++) { print(" Thread {$test} ".$this->id. " - ".$i); sleep($this->sleep); T::test(); } } public function test() { global $test; print " hi man testing {$test}"; } } $thread = new T(1,500,2); $t2 = new T(2,500,5); print " Started"; $thread->test(); $t2->test();
Posted on: Sun, 28 Jul 2013 23:51:32 +0000

Trending Topics



ake-a-10-30-minute-walk-topic-738435332849923">25 AWESOME TIPS FOR BEAUTIFUL LIFE!!! 1. Take a 10-30 minute walk

Recently Viewed Topics




© 2015