public static boolean allAlive(QueryThread t[]) {
        boolean status = true;
        for (QueryThread th : t) {
            if (th.isAlive()) {
                status = false;
                break;
            }
        }
        return status;
    }