Background
I am calling using exec()
from a PHP script to call the PHP executable php.exe
in CLI mode to run a script.
The command I am sending looks like:
exec('/path/to/php.exe /path/to/myscript.php');
The issue is that the process that is lunched is using 99% - 100% of the CPU.
Is there a way to set a priority for the process when launching the script?