\"\" \"\" \"\"
Go backward to Start(): Eager Thread Creation
Go up to Basics
Go forward to start(): Eager Thread Creation (Binding Form)
RISC-Linz logo

create(): Lazy Thread Creation (Binding Form)

t.create(f1, a1, ..., an)
      Threadn<R, A1, ..., An> t
      R (*f)(A1, ..., An)
      Ai ai

Specification: Binds t to a thread returning f(a1, ..., an). This binding overrides any previous binding of t.

Implementation: The thread is not yet activated but is put into the lazy stack.

Note: This operation is more efficient than the otherwise equivalent form

t = Threadn<R, A1, ..., An>::Create(f1, a1, ..., an)

Author: Wolfgang Schreiner
Last Modification: April 12, 1997