Re: php and multithreading (additional arguments)

From: Date: Thu, 01 Apr 2010 20:43:35 +0000
Subject: Re: php and multithreading (additional arguments)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-47723@lists.php.net to get a copy of this message
Hello Antony, Thursday, April 1, 2010, 8:52:13 PM, you wrote: > Not to mention that a high-performance multi-threaded daemon written in PHP > is a total nonsense - that's exactly the task C/C++ do much better/faster. I'd like to have easily written, decently performing multi-threaded daemon. And the things in between here and there are quite hard to do, but still doable: * native multithreading (my uneducated guess: copy on write / rw-sems on the internals and mutex objects on the language level) * PHP JIT (via LLVM or similar) I do agree with the parent poster that it is a can of worms which can easily shoot you in the foot ;) Some kind of php.ini or #pragma-alike threading directive for the programmer to "unlock" it him/herself would be really smart to be had. > -- > Wbr, > Antony Dovgal > --- > http://pinba.org - realtime statistics for PHP -- Best regards, speedy mailto:speedy.spam@gmail.com

« previous php.internals (#47723) next »