performance - How sleep eats CPU php -


how sleep using cpu resources?

does use 100% or 0% of cpu when sleep script. can explain?

as far know increases load average, how use cpu?

the way sleep works os-dependent, because php function sleep calls appropriate runtime function says on tin.

for windows, function sleepex. for other operating systems posix function sleep. in both cases, documentation functions states sleeping thread ineligible running during sleep period , therefore cannot consume cpu resources if wanted to.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -