usleep

What is a practical use for PHP's sleep() ?

I just had a look at the docs on sleep(). Where would you use this function? Is it there to give the CPU a break in an expensive function? Any common pitfalls? Cheers. ...

Sleeping in a Thread (C / POSIX Threads)

I am developing a multithreaded application that makes use of POSIX Threads. I am using threads for doing a periodical job and for that purpose I am using usleep(3) to suspend thread execution. My question is how can I cancel usleep() timer from the main thread, I tried pthread_kill(thread, SIGALRM) but it has a global effect which resul...

Adobe Air SQLite synchronous busy timeout / SQLite concurrent access / avoid busy loop

Hello there, this is my first post here. I'm asking because I ran out of clues and I was unable to find anything about this specific issue. My question is: In Adobe AIR, is there a way to do a synchronous usleep() equivalent (delay execution of 200ms), alternatively is there a way to specify the SQLite busy timeout somewhere? I have ...