
package javacodebook.thread.threadlist;

/**
 *
 * @author Mark Donnermeyer
 */
public class Starter {

    public static void main(String []args) {
        ThreadGroup tg = new ThreadGroup("Gruppe 1");
        Thread t1 = new DemoThread(tg, "Anton");
        Thread t2 = new DemoThread(tg, "Berta");
        
        ThreadGroup tg2 = new ThreadGroup("Gruppe 2");
        Thread t3 = new DemoThread(tg2, "Charly");
        Thread t4 = new DemoThread(tg2, "Dora");
        
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        
        ListThreads ls = new ListThreads();
        ls.listThreads();
    }
}