List of usage examples for java.lang Thread subclass-usage
From source file TwoThreadSleep.java
public class TwoThreadSleep extends Thread { public void run() { Thread t = Thread.currentThread(); String name = t.getName(); System.out.println("entered loop() - " + name);
From source file CounterThread.java
class CounterThread extends Thread { String name; public CounterThread(String name) { super(); this.name = name;
From source file TwoThread.java
public class TwoThread extends Thread { private Thread creatorThread; public TwoThread() { creatorThread = Thread.currentThread(); }
From source file NewThread.java
class NewThread extends Thread { NewThread() { super("Demo Thread"); System.out.println("Child thread: " + this); start(); // Start the thread
From source file MyThread.java
class MyThread extends Thread { int count; MyThread() { count = 0; }
From source file TryThread.java
class TryThread extends Thread { public TryThread(String firstName, String secondName, long delay) { this.firstName = firstName; this.secondName = secondName; aWhile = delay; }
From source file TryThread.java
class TryThread extends Thread { public TryThread(String firstName, String secondName, long delay) { this.firstName = firstName; this.secondName = secondName; aWhile = delay; setDaemon(true);
From source file TryThread.java
class TryThread extends Thread { public TryThread(String firstName, String secondName, long delay) { this.firstName = firstName; this.secondName = secondName; aWhile = delay; setDaemon(true);
From source file MyThread.java
class MyThread extends Thread { MyThread(ThreadGroup group, String name) { super(group, name); } public void run() {
From source file TryThread.java
class TryThread extends Thread { public TryThread(String firstName, String secondName, long delay) { this.firstName = firstName; this.secondName = secondName; aWhile = delay; setDaemon(true);