Go backward to Start(): Eager Thread Creation
Go up to Basics
Go forward to start(): Eager Thread Creation (Binding Form)

create(): Lazy Thread Creation (Binding Form)

t.create(f_1, a_1, ..., a_n)
      Threadn<R, A_1, ..., A_n> t
      R (*f)(A_1, ..., A_n)
      A_i a_i

Specification: Binds t to a thread returning f(a_1, ..., a_n). 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, A_1, ..., A_n>::Create(f_1, a_1, ..., a_n)

Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up Next