cpu usage for idle php script
Hello, I have a php script that runs from a terminal window. Most of the time it's waiting for a user selection:
Is the script using up cpu time, or is counted as cpu time, while waiting for the user input? Thanks!
$selection = stream_get_line(STDIN, 1024, PHP_EOL);Is the script using up cpu time, or is counted as cpu time, while waiting for the user input? Thanks!
-
Hello :) You will receive more feedback to this type of question on a forum dedicated to discussions of PHP itself. For example, I found the following third-party URL that you may find helpful: Stopping while waiting for user input Thank you. 0
Please sign in to leave a comment.
Comments
1 comment