I do not know the inner workings of php exec() but I like to know if it create processes or threads for execution of external command.
3
-
You might take a look at the source code lxr.php.netHamZa– HamZa2014-12-09 11:56:39 +00:00Commented Dec 9, 2014 at 11:56
-
from the PHP man page it seems like at least on some operating systems it's a process, but of course this is implementation-specific. Can you say which OS you are interested in?RobP– RobP2014-12-09 11:58:12 +00:00Commented Dec 9, 2014 at 11:58
-
Ah, this indicates that it creates a new processHamZa– HamZa2014-12-09 11:59:15 +00:00Commented Dec 9, 2014 at 11:59
Add a comment
|
2 Answers
When you call exec php does not create a thread, it creats a new child process. more information here PHP exec() performance