Classes of Alex Lau | > | Multi-thread Simulation | > | Download .zip .tar.gz | > | Support forum (1) | > | Blog | > | Latest changes |
|
|
Groups | Trackback | Applications | Files |
Groups |
HTTP | HTTP protocol clients, headers and cookies | View top rated classes |
Utilities and Tools | General purpose tools to simplify software development | View top rated classes |
Language | Constructs to assist in the language control | View top rated classes |
Innovation Award |
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 |
Pages that reference this package |
Improved Thread Simulation Class for PHP Threads. Most PHP scripts do just fine without them... |
Improved Thread Simulation Class for PHP Threads. Most PHP scripts do just fine without them... |
More on searching PHP, on the other hand, will require the pcntl library compiled in. That isn’t an option in most cases (and my case in particular) (there are other simulations but that is a hack)... |
PHP Multithreading Immagino che ai più le due parole del titolo suonino abbastanza male, in effetti php per sua natura non supporta i thread, il che è palesemente ovvio visto che è un linguaggio di scripting nato per fare tutt’altra cosa... |
PHP Multithreading - Faking It PHP doesn’t really support multi-threading per se but there are ways to do “fake” multithreading... |
PHP Multithreading – Faking It PHP doesn’t really support multi-threading per se but there are ways to do “fake” multithreading... |
Latest pages that reference packages
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Install with Composer - Download all files: thread.tar.gz thread.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|