Example usage for java.lang Thread subclass-usage

List of usage examples for java.lang Thread subclass-usage

Introduction

In this page you can find the example usage for java.lang Thread subclass-usage.

Usage

From source file Main.java

class Worker extends Thread {
    BlockingQueue<Integer> q;

    Worker(BlockingQueue<Integer> q) {
        this.q = q;
    }

From source file wf.frk.tilde.sblauncher.SauerbratenExecutor.java

/**
 * ##################
 * # Tilde Launcher #
 * ##################
 * 
 * This program is free software: you can redistribute it and/or modify

From source file Order.java

class WaitPerson extends Thread {
    private Restaurant restaurant;

    public WaitPerson(Restaurant r) {
        restaurant = r;
        start();

From source file com.microsoft.tfs.util.thread.ThreadInterruptTimer.java

/**
 * {@link ThreadInterruptTimer} is a {@link Thread} that can interrupt another
 * thread after a period of time has elapsed without a specific kind of
 * communication to the instance.
 * <p>
 * To use it, one (original) thread creates an instance of

From source file httpscheduler.ConnectionHandlerThread.java

/**
 *
 * @author thomas
 */
class ConnectionHandlerThread extends Thread {

From source file Main.java

class Worker extends Thread {
    BlockingQueue<Integer> q;

    Worker(BlockingQueue<Integer> q) {
        this.q = q;
    }

From source file Main.java

class Worker extends Thread {
    BlockingQueue<Integer> q;

    Worker(BlockingQueue<Integer> q) {
        this.q = q;
    }

From source file Main.java

class Worker extends Thread {
    BlockingQueue<Integer> q;

    Worker(BlockingQueue<Integer> q) {
        this.q = q;
    }

From source file de.nava.informa.utils.toolkit.WorkerThread.java

/**
 * Abstract worker thread which is driven by <code>WorkersManager</code>. Worker thread runs
 * until <code>terminate</code> property is set to true. All of the threads are run in
 * daemon mode and do not prevent application from sudden quit.
 * <p>
 * In order to do something useful with channel this class should be extended with implementation

From source file EchoServer.java

class ClientServiceThread extends Thread {
    Socket clientSocket;
    int clientID = -1;
    boolean running = true;

    ClientServiceThread(Socket s, int i) {