Class jls.lang.Thread

This class represents a thread. Each thread is an execution entity that is scheduled independently from other threads in the same process.
Defined in: Thread.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.lang.Thread(daemon, shared)
Creates a thread.
Method Summary
Method Attributes Method Name and Description
 
Closes this thread.
 
join()
Joins this thread.
 
run()
This method should be overriden, it is called in the thread.
<static>  
jls.lang.Thread.sleep(ms)
Causes the currently executing thread to sleep.
 
start(thisArg)
Starts this thread.
Class Detail
jls.lang.Thread(daemon, shared)
Creates a thread.
Parameters:
{Boolean} daemon Optional
The thread is a daemon.
{Boolean} shared Optional
Whether the thread to create shares the current context.
See:
jls.lang.Monitor
jls.lang.Lock
Method Detail
{jls.lang.Thread} close()
Closes this thread.
Returns:
{jls.lang.Thread} This thread.

{jls.lang.Thread} join()
Joins this thread.
Returns:
{jls.lang.Thread} This thread.

run()
This method should be overriden, it is called in the thread.

<static> jls.lang.Thread.sleep(ms)
Causes the currently executing thread to sleep.
Parameters:
{Number} ms Optional
The length of time to sleep in milliseconds.

{jls.lang.Thread} start(thisArg)
Starts this thread.
Parameters:
{Object} thisArg Optional
The object to use as this when running this thread.
Returns:
{jls.lang.Thread} This thread.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)