Example usage for java.lang ThreadGroup stop

List of usage examples for java.lang ThreadGroup stop

Introduction

In this page you can find the example usage for java.lang ThreadGroup stop.

Prototype

@Deprecated(since = "1.2")
public final void stop() 

Source Link

Document

Stops all threads in this thread group.

Usage

From source file:Main.java

/**
 * Kill thread group by name/*from w  w w.j a v  a  2  s  . c om*/
 *
 * @param name
 */
public static void killThreadGroup(String name) {
    ThreadGroup threadGroup = getThreadGroupByName(name, null);
    if (threadGroup != null) {
        threadGroup.stop();
    }
}