sunilvadranapu Posted April 5, 2007 Share Posted April 5, 2007 HI, Can any one give me idea on multi-threading application in PHP? PHP supports multi-threadin? How to develp a multi-threading applications in PHP? give me one example. Thanks SunilKumar Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/ Share on other sites More sharing options...
monk.e.boy Posted April 5, 2007 Share Posted April 5, 2007 You can't. Why would you want a web page to render using a multi threaded framework? It makes no sense. What are you trying to do? monk.e.boy Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-222155 Share on other sites More sharing options...
kenrbnsn Posted April 5, 2007 Share Posted April 5, 2007 Who says the OP wants to render a web page? PHP can be used for non-web applications and background tasks in AJAX areas. Ken Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-222176 Share on other sites More sharing options...
utexas_pjm Posted April 5, 2007 Share Posted April 5, 2007 Does PHP support multi-threading? Not really, but kind of. I wrote a lightweight HTTP server in PHP and found these functions very helpful for spawning off processes to handle HTTP requests: http://us2.php.net/pcntl. Best, Patrick Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-222196 Share on other sites More sharing options...
monk.e.boy Posted April 5, 2007 Share Posted April 5, 2007 Who says the OP wants to render a web page? PHP can be used for non-web applications and background tasks in AJAX areas. Ken No. I use PHP as a multi processes (note: not multi threads) to spider sites. Runs in linux with an engine spawning various sub processes also written in PHP to do bits and bobs. It's a poor language choice. Python could do that same in a much nicer way. So - PHP good for making web pages. Other languages are better suited to multi threaded. monk.e.boy Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-222205 Share on other sites More sharing options...
gluck Posted April 5, 2007 Share Posted April 5, 2007 yes you can spawn child processes but then the will be killed the moment the parent is dead. Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-222330 Share on other sites More sharing options...
geethalakshmi Posted April 18, 2008 Share Posted April 18, 2008 Hi The following site may give you a clear idea about threading with an example.Go ahead and make use of it. http://www.hiox.org/index.php?id=138 Regards Geethalakshmi http://www.hiox.org/ http://www.zxcvbnm.in/ Link to comment https://forums.phpfreaks.com/topic/45726-multi-threading-in-php/#findComment-520211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.