Title:

start() - start or continue one or more threads. This takes out of suspend mode and into run/evaluation mode.

Usage:

start(...)

Arguments:

thread:
the threads or threadGroups to start supplied as a individual objects or as vectors or lists. Recall that a character string can be used to reference a thread when supplied to the thread creation routine thread() or retrieved from the thread object

Side Effect:

All the threads referenced in the argument thread are taken from their current mode to run mode.

start() and suspend() can be used as a very weak form of synchronization. Such use puts the onus on the programmer to know how to wake other threads up directly rather than having them signal a change in the value of a variable which the "would be suspended thread" can check and continue on given certain conditions. We include suspend() as a convenience and for completeness.

See Also:

suspend
cancel

Examples:

      # establish two threads to be run later
     tA = thread(Quote(fit <- lm(x,y)), start=F)
     tB = thread(Quote(fit1 <- lm(x1,y1) ), start=F)
       ..
       ..        # some more processing
       .. 
     start(tA,tB)  # start these two as simultaneously as possible
     suspended.threads = suspend()
      synchronize()
     start(suspended.threads)

Key Words:

User Level Threads

Last modified: Thu Feb 6 15:00:42 1997