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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.8
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: