sleep()

Function group Execute on client Platform(s)
General NO All

Syntax

sleep(milliseconds)

Description

Suspends execution for the specified number of milliseconds; returns true if execution suspended successfully or false if an error occurred.

The actual delay can be longer in the multi-threaded server if another stack is executing its time slice when the sleep delay expires. As soon as you execute sleep() in the multi-threaded server, other waiting stacks can run.