The code has the following snippet:
do { curl_multi_exec($curlMultiHandle, $running); } while($running > 0); As far as I understand, this is a cycle that is executed until answers are received from all sources.
Actually, the question is - how much will it load the processor in case there is no answer for a long time?
If the load is still large, is it possible to use usleep? I remember that in C or Pascal, when using such a function, the OS could switch to a different process for a specified time, respectively, MY process will not load the processor. Can this be done in PHP?