Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4176355

ThreadGroup.stop/suspend will not stop/suspend all of threads

XMLWordPrintable

    • 1.1.8
    • generic
    • generic
    • Not verified

        ThreadGroup.stop/suspend will not stop/suspend all of threads in the group
        if current thread attempting stop/suspend threads in the group is in the
        same group.

        If thread stop/suspend itself by ThreadGRoup.stop/suspend , the rest of threads
        in the group won't be affected.

        Try run sample code in the attachement. It will run two threads but 2nd thread
        won't be stopped by ThreadGroup.stop.

              jjb Josh Bloch
              sishidasunw Shoji Ishida (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: