Creates a new thread group. The parent of this new group is the
specified thread group.
<p>
The {@code checkAccess} method of the parent thread group is
called with no arguments; this may result in a security exception.
@param parent the parent thread group.
@param name the name of the new thread group.
@throws NullPointerException if the thread group argument is
{@code null}.
@throws SecurityException if the current thread cannot create a
thread in the specified thread group.
@see java.lang.SecurityException
@see java.lang.ThreadGroupEx#checkAccess()
Creates a new thread group. The parent of this new group is the specified thread group. <p> The {@code checkAccess} method of the parent thread group is called with no arguments; this may result in a security exception.
@param parent the parent thread group. @param name the name of the new thread group. @throws NullPointerException if the thread group argument is {@code null}. @throws SecurityException if the current thread cannot create a thread in the specified thread group. @see java.lang.SecurityException @see java.lang.ThreadGroupEx#checkAccess()