>>9
Now I can't speak for Windows, but on Unix sleep() is used to "block" a system call. You would normally do this if say a socket didn't to a full read(). Sleep() can also be used as a crude way to synchronized two processes that communicate with each other.