Title:
-
exit() - terminate the execution of a thread and return a value to the
evaluator manager.
-
Usage:
- exit(value)
-
Arguments:
- value:
- the value to be returned by this thread. Other threads can query this
during a join operation.
-
Side Effect:
- The expressions supplied at creation through
the onExit argument
and through onExit expressions
evaluated within this thread are evaluated.
The value is cached by the evaluator manager and
can be queried by other threads after this thread has completed.
Do we need to have a way to not cache this value and have a detached thread in the Pthreads
sense?
- Note
This is implemented through the evaluator manager.
-
See Also:
- join()
- onExit()
Examples:
converged = sum(errors) < threshold
if(converged)
exit(T)
converged = sum(errors) < threshold
if(converged)
exit(coefficients) # return the coefficients from a fit.
-
Key Words:
- User Level Threads
Last modified: Mon Feb 10 16:33:18 1997