HELP! * BLUE=global GREY=local Global HTML version of Foils prepared July 6,1995

Foil 24 TCE -- Implementation -- 3

From Threads with TCE in detail CPS600 Spring Semester95 -- April 1995. by Janusz Niemiec and Geoffrey Fox * See also color IMAGE

The most important fields in the descriptors are:
  • thread's registers and program counter
  • pointer to the thread's stack
  • thread priority
  • thread's priority queue
  • pointer to the parent thread
  • pointers to all thread's children
Thread Destruction:
When the function (declared as a thread) reaches its end, it is removed from the scheduling queue and from the parent thread list of children. If that thread has no children it wishes to wait for, its descriptor is stack space will be reclaimed and the thread will be physically destroyed. Otherwise, the destruction stage will be postponed until all its children die. There are the following important aspects of this scheme of thread destruction:
  • clean semantics -- related threads form a tree which represents relations
  • threads' parameters which were declared as automatic variables in a parent thread will still be valid, even when the parent thread finished its execution


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997