The performance of sleep() and usleep()

From: Date: Sat, 19 May 2001 15:26:34 +0000
Subject: The performance of sleep() and usleep()
Groups: php.general 
Request: Send a blank email to php-general+get-53526@lists.php.net to get a copy of this message
If i use these functions in my script, what will be the system resource usage? I know, thread will be open while the script is running but, i believe that they will not use extra system resource, won't they? For example, i want to send 10 emails every 30 seconds. Assume that there are 1,000,000 emails. So; for(from 1 to 1,000,000 count) { send 1 email increase couner if counter = 10 emails then sleep(30) else continue } And assume that this for loop will take 10 hours to finish. Will it use the same or higher system resource while it has entered to sleep mode? Thanks for your help

« previous php.general (#53526) next »