thread.wake

Syntax thread.wake (id)

Params id is the numeric id of the thread that you wish to wake up.

Action Wakes up the indicated thread.

Returns True if the thread was sleeping, false if it was already awake.

Examples thread.wake (117) « put the thread to sleep
» true

thread.wake (999)
» error: The thread whose ID is 999 does not exist.

Errors It is an error to specify a nonexistent thread id.

Notes The thread that you wake up with this verb will resume executing the next time the thread scheduler gets to it.

See Also thread.getNthID

thread.sleep

thread.isSleeping

system.compiler.threads

Discuss