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

Jacob Santos' Blog:
Multitasking in PHP
August 19, 2006 @ 15:23:43

In his latest blog post, Jacob Santos takes a look at a common request PHP developers hit after a while - is it possible to multitask processes/actions in php?

The ability to run two or more commands in parallel is totally sexy, but the Web is a different playing field and it doesn't make complete sense.

PHP loses control, once the output is sent and the connection is closed. Multithreading would probably make sense in streaming, but PHP already handles that for you where it makes sense for the function. Furthermore, mulithreading has its purpose in applications that continue to run and not something that closes and cleans up everything after the last command is issued.

He continues talking more about what multitasking is, a more real life example, the goods, the bads, and some of the issues that can come along with it. Finally, he suggests a feature to be added to the core of PHP - an "internal multitasking mechanism" to help aid these kinds of processes.

0 comments voice your opinion now!
multitasking common questions real world good bad multitasking common questions real world good bad


blog comments powered by Disqus

Similar Posts

Michael Kimsal's Blog: PHP Continuous Integration with phpUnderControl

Reign's SourceRally Blog: The PHP coder's top 10 mistakes and problems

PHPMaster.com: Practical Refactoring, Part 1 - What is Good Code?

Brandon Savage's Blog: Q&A: Answering Some Questions About Object-Oriented Programming

Jani Hartikainen's Blog: The problems faced by a common model interface in frameworks


Community Events











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


overview framework hhvm code unittest install opinion symfony2 language composer application introduction component security release support podcast facebook hack package

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