Reply to Re: PHP Threading

Your name:

Reply:


Posted by Chris Hope on 05/21/07 02:45

Benjamin wrote:

> On May 20, 8:55 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Graham Weldon wrote:
>> > Has anyone got any information or links for some tutorials on
>> > threading with PHP?
>> > I was looking at running a socket listener, and launch off new
>> > threads, and co-ordinate as requests come in.
>>
>> The PHP cli doesn't support multithreading. You can get multiple
>> threads if you're running as an Apache or IIS extension and the
>> webserver is running multiple threads, but that's all.
>
> That's not completely true. You can the Process Control Functions
> (http://www.php.net/manual/en/ref.pcntl.php). However, they're only
> avaible on Unix like systems.

That's process forking, which isn't quite the same as multi-threading.
However it can be extremely useful depending on your requirements.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация