thread-sleep

Name

thread-sleep -- Sleeps the current thread for sec seconds.

Type: function

Synopsis

thread-sleep( sec, );

Arguments

ms

An instance of <real> denoting the number of seconds to sleep

Description

The current thread blocks for approximately sec seconds, which may be a fractional quantity. That is, the current thread is marked as sleeping and after sec seconds have passed (real time), it is marked as runnable. When exactly the thread runs after it gets marked runnable is subject to other dynamics, especially the number and priority of other threads that are runnable.