Skip to Content

Fwd: Explain on Thread Join

  • warning: Invalid argument supplied for foreach() in /var/www/drupal_module/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /var/www/drupal_module/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /var/www/drupal_module/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /var/www/drupal_module/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /var/www/drupal_module/cck/theme/content-field.tpl.php on line 35.

Got a wonderful sentence:

In general, thread join is for a parent to join with one of its child threads.

Thread join has the following activities, assuming that a parent thread P wants to join with one of its child threads C.

  • When P executes a thread join in order to join with C, which is still running, P is suspended until C terminates. Once C terminates, P resumes.
  • When P executes a thread join and C has already terminated, P continues as if no such thread join has ever executed (i.e., join has no effect).

 

-- EOF-TRUEVUE --

评论

发表新评论

此内容将保密,不会被其他人看见。