Re: php and multithreading (additional arguments)

From: Date: Mon, 05 Apr 2010 17:19:55 +0000
Subject: Re: php and multithreading (additional arguments)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-47793@lists.php.net to get a copy of this message
Hello Moriyoshi, Monday, April 5, 2010, 5:57:38 PM, you wrote: >> Is overhead of starting new thread large? > The cost is almost the same as when spawning a new runtime instance on > a threaded web server with TSRM enabled. If you'd pass a large data > to the subthread, then the overhead should go large because of the > deep copy. Note that could be optimized by implementing copy on write (with properly placed hooks and shared data) between contexts - would save tons of memory and speed up the thread creation by an order of magnitude. > Moriyoshi -- Best regards, speedy mailto:speedy.spam@gmail.com

« previous php.internals (#47793) next »