"Blocks the current thread until the thread identified by *this finishes its execution. "
join() appears similar to function in Java but the description given in cppreference.com is a bit terse and not very explanatory.
Does this mean that the current thread, for instance being the only one started in main,
will block until int main returns?Code:thread run(foo);
Can someone please elaborate?