Location: PHPKode > scripts > PHP Threader > php-threader/Examples/Ex4_MainThread.php
 * This Example Demostrates using MySQL Communication with Ajax Thread Calling
 * it does a simple task one thread is counting and the other is printing to file
 * it Consists of the Files:-
 * 1)Ex1_MainThread.php : The Main thread that watches two threads and prints to screen when they finish
 * 2)Ex1_Counter.php    : The Thread that Counts
 * 3)Ex1_Echoer.php     : The Thread That Prints to file
 * @package Examples
 * @subpackage Example4
 * @author Mohammed Yousef Bassyouni <hide@address.com>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @todo Fully Document the example
$fcom=new MyCom("","root","","webct");
$P=new Process($fcom);
$e=new AjThread("Ex4_Counter.php","",$P);
$s=new AjThread("Ex4_Echoer.php","",$P);

//print $s->GetState()." S<br>";
//print $e->GetState()." E";
Return current item: PHP Threader