News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

AlternateInterior.com:
Multi-Threading Strategies in PHP
May 02, 2007 @ 15:29:00

On AlternateInterior.com, there's the start of something that could be used to speed up the execution of your app - multi-threading in PHP.

PHP does not have threading anywhere in its massive core. We can, however, fake it by relying on the underlying operating system's multitasking abilities instead of PHP. This article will show you how.

PHP has no built in support for threading. But there can still be times when you've got lengthy code to run and idle CPU cycles you'd like to capitalize on. We can treat child processes as threads.

He (Brian Bosh) uses the example of executing five other PHP scripts inside of another through the use of a multi-threading class he's developed. Included is the code for both the class and the example code to use it.

0 comments voice your opinion now!
multithreading strategy class background execute multithreading strategy class background execute


blog comments powered by Disqus

Similar Posts

DevShed: Build a Query Processor Class for Networking in PHP 5 (Part 1)

DevShed: Working with Directory Iterators and Proxy Classes with PHP 5

Zend Developer Zone: Avoiding XSS security attacks to sites that use HTML editors

Zend Developer Zone: Cool Image Thumbnail Class

Eric Lamb's Blog: Practical PHP Reflection


Community Events











Don't see your event here?
Let us know!


database podcast facebook introduction code install symfony2 package composer language component performance hack security application framework threedevsandamaybe unittest hhvm release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework