Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Origin of thread join

Nearly all programming languages that support threading, have a method called join. I understand what a join does, but would like to know what the origin behind the naming of it is? Wouldn't a name such as finish be more appropriate?

like image 946
elmt Avatar asked Jan 22 '23 03:01

elmt


1 Answers

I think it comes from the analogy of execution paths. The program's execution path split into two separate paths when the thread was spawned, and now you want the two paths to join back together into a single path again.

like image 143
Jeremy Friesner Avatar answered Feb 15 '23 22:02

Jeremy Friesner