note 114752 added to class.thread

From: Date: Tue, 01 Apr 2014 23:01:25 +0000
Subject: note 114752 added to class.thread
Groups: php.notes 
Request: Send a blank email to php-notes+get-199097@lists.php.net to get a copy of this message
<?php class workerThread extends Thread { public function __construct($i){ $this->i=$i; } public function run(){ while(true){ echo $this->i; sleep(1); } } } for($i=0;$i<50;$i++){ $workers[$i]=new workerThread($i); $workers[$i]->start(); } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 186.153.246.19 ---- Manual Page -- http://php.net/manual/en/class.thread.php Edit -- https://master.php.net/note/edit/114752 Del: integrated -- https://master.php.net/note/delete/114752/integrated Del: useless -- https://master.php.net/note/delete/114752/useless Del: bad code -- https://master.php.net/note/delete/114752/bad+code Del: spam -- https://master.php.net/note/delete/114752/spam Del: non-english -- https://master.php.net/note/delete/114752/non-english Del: in docs -- https://master.php.net/note/delete/114752/in+docs Del: other reasons-- https://master.php.net/note/delete/114752 Reject -- https://master.php.net/note/reject/114752 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199097) next »