|
|||
Previous < |
Contents ^
|
Next >
|
![]() |
class ThreadGroup |
|
ThreadGroup
provides a means of keeping track of a number of
threads as a group. A Thread
can belong to only one
ThreadGroup
at a time; adding a thread to a new group will
remove it from any previous group.
Newly created threads belong to the same group as the thread from
which they were created.
constants |
Default
|
Default thread group. |
class methods | |
new | ThreadGroup.new -> thgrp |
Returns a newly created ThreadGroup . The group is initially
empty.
|
instance methods | ||||
add | thgrp.add( aThread ) -> thgrp | |||
Adds the given thread to this group, removing it from any other
group to which it may have previously belonged.
|
||||
list | thgrp.list -> anArray | |||
Returns an array of all existing Thread objects that belong
to this group.
|
Previous < |
Contents ^
|
Next >
|