HELP! * GREY=local LOCAL HTML version of Foils prepared July 6,1995

Foil 35 TCE -- Implementation -- 13: Parent-Child Join Synchronization

From Master Foils for Threads with TCE in detail CPS600 Spring Semester95 -- April 1995. by Janusz Niemiec and Geoffrey Fox * Important Information in IMAGE

There is additional synchronization mechanism in TCE, which allows a parent thread to synchronize with its children at the moment of their termination. tce_thrd_join function will block the parent thread until the specified child terminates its execution:
void func(p1)
{
  • ... /* do some work */
}
void main(int argc, char *argv[])
{
  • TCE_Thrd *thrd;
  • int prm;
  • ...
  • thrd = tce_thrd_init(func,prm);
  • tce_thrd_start(thrd);
  • ...
  • tce_thrd_join(thrd); /* wait for my child's termination */
  • ...
}



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