Req #66974 [Opn->Nab]: Multi Core Capability

From: Date: Fri, 28 Mar 2014 18:13:10 +0000
Subject: Req #66974 [Opn->Nab]: Multi Core Capability
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184947@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66974&edit=1 ID: 66974 Updated by: johannes@php.net Reported by: jfha73 at gmail dot com Summary: Multi Core Capability -Status: Open +Status: Not a bug Type: Feature/Change Request Package: Performance problem Operating System: All PHP Version: master-Git-2014-03-28 (Git) Block user comment: N Private report: N New Comment: 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 http://pecl.php.net/pthreads The core distribution doesn't provide this on purpose. Previous Comments: ------------------------------------------------------------------------ [2014-03-28 17:27:36] jfha73 at gmail dot com Description: ------------ 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. Thanks, ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66974&edit=1

« previous php.bugs (#184947) next »