|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66974 Multi Core Capability
Submitted: 2014-03-28 17:27 UTC Modified: 2014-03-28 18:13 UTC
From: jfha73 at gmail dot com Assigned:
Status: Not a bug Package: Performance problem
PHP Version: master-Git-2014-03-28 (Git) OS: All
Private report: No CVE-ID: None
 [2014-03-28 17:27 UTC] jfha73 at gmail dot com
Hey guys,

Now a days CPUs are coming with more and more cores, it would be nice if PHP could handle multiple cores instead of multiple threads so it can get better performance.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-28 18:13 UTC]
-Status: Open +Status: Not a bug
 [2014-03-28 18:13 UTC]
I don't understand what "multiple cores instead of multiple threads" means,anyways: PHP's purpose is to handle web requests in a shared nothing architecture. By that architecture it can be easily be scaled linearly vertically (over multiple machines) as well as horizontally (bigger machines= easily and thus use all available CPU power.

Threading inside individual scripts in this context brings more complications and less benefit. PHP offers asynchronous operations and we will increase that, where it makes sense. To provide a good user experience the suggested approach is to offload CPU-intensive tasks to background workers using gearman or rabbitmq or such.

For experimental use of threads from within a script one can look into The core distribution doesn't provide this on purpose.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 29 18:01:24 2020 UTC