Title:

threadGroup() - constructor for a threadGroup object. Any number of thread objects can be passed to the constructor as elements to be added to the group.

Usage:

threadGroup(..., attributes= threadAttributes() )

Arguments:

...:
thread objects or lists or vectors of these objects to be added the group.
attributes:
threadAttributes object that is to be used as the default attributes in a call to thread() if the argument group is specified in that call.
THIS ARGUMENT ISN'T NEEDED. Never create THREADS using a thread group!

Side Effect:

a name table is created in this threads frame. Should we do this or make them assign it. I know!

See Also:

thread class
thread()
setAccess()

Examples:

       tA = thread(Quote(.....))
       tB = thread(Quote(.....))
       threads = vector(10)
       for(i in 1:10) {
         threads[i] = thread(substitute({while(T)print(i)},list(i=i)))
       }
        group = threadGroup(tA,tB, threads)
       group = threadGroup()
       tA = thread(Quote(.....),group = group)
       tB = thread(Quote(.....),group = group)

Key Words:


Last modified: Wed Feb 12 09:54:34 1997