PHP Classes

File: example5.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Sildaekar Decrura  >  PTM  >  example5.php  >  Download  
File: example5.php
Role: Example script
Content type: text/plain
Description: Example 5
Class: PTM
Manage PHP tasks running in parallel processes
Author: By
Last change: Fixed file pointer
Date: 3 years ago
Size: 561 bytes


Class file image Download
//In this example we load and run the task "HelloWorld"

//Include the task manager into our program

//Initialize the Manager
$manager=new TaskManager();

//Load the "Hello World" task
$manager->add_task(new HelloWorld());

//Load the "Hello World2" task which pulls
//the first word from the internal memory.
$manager->add_task(new HelloWorld2());

//Make sure there are tasks present
//Run all loaded tasks