Tabnine Logo
Thread.create
Code IndexAdd Tabnine to your IDE (free)

How to use
create
method
in
java.lang.Thread

Best Java code snippets using java.lang.Thread.create (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the {@code
 * ThreadGroup} passed as parameter.
 *
 * @param group
 *            {@code ThreadGroup} to which the new {@code Thread} will
 *            belong
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 * @throws IllegalThreadStateException
 *             if <code>group.destroy()</code> has already been done
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(ThreadGroup group, Runnable runnable) {
  create(group, runnable, null, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and the
 * name provided. The new {@code Thread} will 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("threadName == null");
  }
  create(null, null, threadName, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object, the
 * given name and belonging to the {@code ThreadGroup} passed as parameter.
 *
 * @param group
 *            {@code ThreadGroup} to which the new {@code Thread} will belong
 * @param threadName
 *            the name for the {@code Thread} being created
 * @throws IllegalThreadStateException
 *             if <code>group.destroy()</code> has already been done
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(ThreadGroup group, String threadName) {
  if (threadName == null) {
    throw new NullPointerException("threadName == null");
  }
  create(group, null, threadName, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object, the given
 * name and belonging to the {@code ThreadGroup} passed as parameter.
 *
 * @param group
 *            ThreadGroup to which the new {@code Thread} will belong
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 * @param threadName
 *            the name for the {@code Thread} being created
 * @throws IllegalThreadStateException
 *             if <code>group.destroy()</code> has already been done
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(ThreadGroup group, Runnable runnable, String threadName) {
  if (threadName == null) {
    throw new NullPointerException("threadName == null");
  }
  create(group, runnable, threadName, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and name
 * provided. The new {@code Thread} will belong to the same {@code
 * ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will 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("threadName == null");
  }
  create(null, runnable, threadName, 0);
}
origin: robovm/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object, the given
 * name and belonging to the {@code ThreadGroup} passed as parameter.
 *
 * @param group
 *            {@code ThreadGroup} to which the new {@code Thread} will
 *            belong
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 * @param threadName
 *            the name for the {@code Thread} being created
 * @param stackSize
 *            a stack size for the new {@code Thread}. This has a highly
 *            platform-dependent interpretation. It may even be ignored
 *            completely.
 * @throws IllegalThreadStateException
 *             if <code>group.destroy()</code> has already been done
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(ThreadGroup group, Runnable runnable, String threadName, long stackSize) {
  if (threadName == null) {
    throw new NullPointerException("threadName == null");
  }
  create(group, runnable, threadName, stackSize);
}
origin: MobiVM/robovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: ibinti/bugvm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: com.bugvm/bugvm-rt

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: com.gluonhq/robovm-rt

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: FlexoVM/flexovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will 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);
}
origin: MobiVM/robovm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: com.bugvm/bugvm-rt

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: ibinti/bugvm

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: com.gluonhq/robovm-rt

/**
 * Constructs a new {@code Thread} with a {@code Runnable} object and a
 * newly generated name. The new {@code Thread} will belong to the same
 * {@code ThreadGroup} as the {@code Thread} calling this constructor.
 *
 * @param runnable
 *            a {@code Runnable} whose method <code>run</code> will be
 *            executed by the new {@code Thread}
 *
 * @see java.lang.ThreadGroup
 * @see java.lang.Runnable
 */
public Thread(Runnable runnable) {
  create(null, runnable, null, 0);
}
origin: MobiVM/robovm

/**
 * Constructs a new {@code Thread} with no {@code Runnable} object and the
 * name provided. The new {@code Thread} will 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("threadName == null");
  }
  create(null, null, threadName, 0);
}
java.langThreadcreate

Javadoc

Initializes a new, existing Thread object with a runnable object, the given name and belonging to the ThreadGroup passed as parameter. This is the method that the several public constructors delegate their work to.

Popular methods of Thread

  • currentThread
  • sleep
    Causes the currently executing thread to sleep (temporarily cease execution) for the specified numbe
  • <init>
    Constructs a new Thread with no Runnable object, the given name and belonging to the ThreadGroup pas
  • start
    Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread
  • getContextClassLoader
    Returns the context ClassLoader for this Thread. The context ClassLoader is provided by the creator
  • interrupt
    Interrupts this thread. Unless the current thread is interrupting itself, which is always permitted,
  • setDaemon
    Marks this thread as either a #isDaemon thread or a user thread. The Java Virtual Machine exits when
  • getName
    Returns this thread's name.
  • join
    Waits at most millis milliseconds plus nanos nanoseconds for this thread to die. This implementatio
  • setContextClassLoader
    Sets the context ClassLoader for this Thread. The context ClassLoader can be set when a thread is cr
  • setName
    Changes the name of this thread to be equal to the argumentname. First the checkAccess method of thi
  • interrupted
    Tests whether the current thread has been interrupted. Theinterrupted status of the thread is cleare
  • setName,
  • interrupted,
  • getStackTrace,
  • getId,
  • isInterrupted,
  • isAlive,
  • setPriority,
  • yield,
  • getThreadGroup,
  • getPriority

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now