/**
* Constructs a new {@code Thread} with no {@code Runnable} object and a
* Newly generated name. The new {@code Thread} would belong to the same
* {@code Threadgroup} as the {@code Thread} calling this constructor.
*
* @see Java.lang.ThreadGroup
* @see java.lang.Runnable
*/
Public Thread () {
Create (NULL, NULL, NULL, 0);
}
/**
* Constructs a new {@code Thread} with a {@code Runnable} object and a
* Newly generated name. The new {@code Thread} would belong to the same
* {@code Threadgroup} as the {@code Thread} calling this constructor.
*
* @param runnable
* A {@code Runnable} whose method <code>run</code> would be
* Executed by the new {@code Thread}
*
* @see Java.lang.ThreadGroup
* @see java.lang.Runnable
*/
Public Thread (Runnable Runnable) {
Create (NULL, runnable, NULL, 0);
}
/**
* Constructs a new {@code Thread} with a {@code Runnable} object and Name
* provided. The new {@code Thread} would belong to the same {@code
* Threadgroup} as the {@code Thread} calling this constructor.
*
* @param runnable
* A {@code Runnable} whose method <code>run</code> would be
* Executed by the new {@code Thread}
* @param threadname
* The name for the {@code Thread} being created
*
* @see Java.lang.ThreadGroup
* @see java.lang.Runnable
*/
Public Thread (Runnable Runnable, String threadname) {
if (ThreadName = = null) {
throw new NullPointerException ();
}
Create (null, runnable, threadname, 0);
}
/**
* Constructs a new {@code Thread} with no {@code Runnable} object and the
* Name provided. The new {@code Thread} would belong to the same {@code
* Threadgroup} as the {@code Thread} calling this constructor.
*
* @param threadname
* The name for the {@code Thread} being created
*
* @see Java.lang.ThreadGroup
* @see java.lang.Runnable
*
*/
Public Thread (String threadname) {
if (ThreadName = = null) {
throw new NullPointerException ();
}
Create (NULL, NULL, ThreadName, 0);
}