Go backward to create(): Lazy Thread Creation (Binding Form)
Go up to Basics
Go forward to Wait(): Waiting for a Thread Result

start(): Eager Thread Creation (Binding Form)

t.start(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 activated by allocating its stack and putting it into the tail of the ready queue.

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

t = Threadn<R, A_1, ..., A_n>::Start(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