You are here: Re: Multithreading for standalone php « PHP Programming Language « IT news, forums, messages
Re: Multithreading for standalone php

Posted by Jerry Stuckle on 05/15/06 14:08

aladdin wrote:
> Hi, all.
>
> I'm trying to write a mutlithreading server with standalone PHP.
> Concurrent requests is possible. Normally it is done by handling each
> socket spawn by serversocket in separate threads. But it seems that
> there is no thread support in PHP at all.
>
> Would anyone give me some suggestions?
>
> BTW, is the community considering add thread support to PHP in the
> future? What is the major difficulty to import an existing thread
> library (such as pthread library) into PHP?
>

Hmmm, as much as I like PHP, I might suggest it is not the right approach for
this operation. PHP doesn't support threads, but you can fork a new process (on
Unix) as Chris indicated.

Personally I'd look at another language for this, such as C or C++.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

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