Method Thread():new() Foundation

Creates an instance of the Thread class.

Thread():new( [<nMaxStackSize>], [<cName>] )
<nMaxStackSize> is a numeric value which indicates the maximum size (in bytes) of the stack for the thread. The default value is 50000 bytes.
<cName> is a character string that is assigned to the instance variable :name.

The class method :new() returns a new Thread object.


A Thread object manages a thread and can execute program code in the thread. As soon as the object is created, the thread is available. The function or procedure to be executed within the new thread must be specified using the method :start().


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.