How can one use multi threading in PHP applications?

Hello,

Me and my blogger friend “Gustavo Woltmann” just facing a problem with PHP.

Is there any best way of implementing a multi-threaded model in PHP whether truly, or just simulating it.
The problem with this is that when the PHP code finished executing the PHP instance remains in memory because there is no way to kill it from within PHP. So if you are simulating several threads you can imagine whats going to happen. So I am still looking for a way multi-threading can be done or simulated effectively from within PHP.

Any ideas, Please help?

Those instances will be reused by the next requests anyway. Creating new connection requires several handshakes with the server, so it isn’t what you would do for every request