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.
THIS ARGUMENT ISN'T NEEDED. Never create THREADS using a thread group!
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)
|
|---|