How can one use multi threading in PHP applications ? |
(02-12-2017, 04:41 PM)iamthwee Wrote: Yes but that is not really multi-threading or utilising parallel processing. I watched about 2/3 of the video. I understand that using php's exec by itself would not utilize multi-threading or parallel processing, but it does allow PHP's execution to continue while the command or script run by exec is it's own process. Regardless of language, I don't have the programming experience to know exactly when I would need true multi-threading. When I'm making Android apps I know I am forced to use a different thread for certain things, but I am not actually doing the hard work there, but instead relying on RxAndroid. So if the OP really wants to do true multi-threading, then I don't have the answers. If OP wants to do two+ things at once, using the little library I linked to really does work. For my own needs I made some very slight tweaks to it, and it definitely creates new linux processes that can be verified through ps. PHP Code: /** |
Messages In This Thread |
How can one use multi threading in PHP applications ? - by makeshaun - 01-26-2017, 03:17 AM
RE: How can one use multi threading in PHP applications ? - by Narf - 01-26-2017, 04:46 AM
RE: How can one use multi threading in PHP applications ? - by skunkbad - 02-12-2017, 10:04 AM
RE: How can one use multi threading in PHP applications ? - by ignitedcms - 02-12-2017, 02:41 PM
RE: How can one use multi threading in PHP applications ? - by skunkbad - 02-12-2017, 03:35 PM
RE: How can one use multi threading in PHP applications ? - by ignitedcms - 02-12-2017, 04:41 PM
RE: How can one use multi threading in PHP applications ? - by skunkbad - 02-12-2017, 05:45 PM
|