phpexecution-timepassthru

Execution time vs idle time in PHP


This is more of a theoretical question.

When I run a PHP script that does a passthru to some other program, say a Java application, let's assume that program works for 30 minutes and then ends gracefully and PHP keeps calling it in a loop every single time...

... does the time PHP stays idle waiting for Java count as execution time or as idle time?


Solution

  • This manual page seems to indicate that on Windows the time will count as execution time, whereas on Linux it will not.