php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #47894 Request: Support multi threading/multiple CPU cores
Submitted: 2009-04-04 09:54 UTC Modified: 2009-04-04 10:29 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ryan14 at mail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.0RC1 OS: Windows/Linux
Private report: No CVE-ID: None
 [2009-04-04 09:54 UTC] ryan14 at mail dot com
Description:
------------
PHP doesn't currently support Multi threading and multiple core CPU's. All new CPU's have multiple cores like intel's quad core CPU which has 4 cores and some motherboards have two CPU sockets so 2 quad core CPU's would mean there would be 8 cores.
 PHP should support Multi threading and multiple core CPU's because it will mean people won't need to have as many servers in their cluster, because alot of CPU power is being wasted because PHP doesn't support Multi threading and multiple core CPU's. 
 You can read more about it here:

http://www.alternateinterior.com/2007/05/multi-threading-strategies-in-php.html

So please PHP, the next version of PHP should support Multi threading and multiple core CPU's. If you have to work with the mysql and apache teams with this then please do it.

Can you pass on my feature request to the php team?

Thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-04 10:29 UTC] johannes@php.net
PHP is made to run from a web server, there you usually serve multiple requests in parallel -> all cores used.

In PHP level multi-threading is barely needed, usually all threading is needed for IO operations, but these can be solved by async connections (as of 5.3 you have async query support with mysql for instance)

Adding full thread support just adds lots of new complexity and locking issues and barely real wins in performance.
 [2011-03-24 17:35 UTC] phpuser at fake dot com
Actually for people using php to run a cpu intensive script outside of the webserver. This would be very important.
 [2011-09-19 15:14 UTC] scudeast at gmail dot com
I agree - shell based CPU intensive scripts are totally unsuitable for 
implementation in php which is single thread bound.

This is I believe a serious issue that many of the php folk conveniently overlook 
- and as a php developer myself this is incredibly frustrating.
 [2014-02-09 17:22 UTC] info-php at ch2o dot info
i agree for php scripting use full threading support a language level while be importante.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 00:01:28 2024 UTC