|
Name: |
Multi-thread Simulation |
Base name: |
thread |
Description: |
Emulate threads using separate HTTP requests |
Version: |
0.0 |
PHP version: |
4.0 |
License: |
GNU General Public License (GPL) |
All time users: |
6360 users |
All time rank: |
334 |
Week users: |
0 users |
Week rank: |
190  |
|
|
 July 2007
Number 2
Prize: One book of choice by O'Reilly |
Some applications need to perform several tasks that may take a while to finish. When there are many tasks to execute, it may take a long time to finish all of them if they are executed sequentially, i.e. one after another.
A possible solution for this problem is to execute several tasks at the same time using separate processes or threads.
PHP has the pcntl extension that can be used to run multiple processes in parallel. However, this extension is only available in Linux or Unix like operating systems.
This package provides an alternative solution that consists in sending multiple HTTP requests to the same Web server on which PHP is running.
Each HTTP request triggers the execution of a different task. Many requests can be run at the same time without having to wait for each one to finish.
This solution can run in Windows and all other operating systems supported by PHP, including PHP environments on which the pcntl extension is not installed.
Manuel Lemos |
Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
All time: |
Not sure (50%) |
Not sure (50%) |
- |
Not sure (50%) |
- |
- |
Insufficient (35%) |
3220 |
Month: |
Not yet rated by the users |
|
Pages that reference this package |
|
Latest pages that reference packages
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
|
Files |
|