Skip to content

Commit 40ddccb

Browse files
author
Vladimir Kotal
committed
add link to the pthread_create.c example
1 parent a6d862a commit 40ddccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

threads.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@
243243
\end{slide}
244244

245245
\begin{itemize}
246+
\item If the main thread does not wait for the thread to finish, the whole
247+
program will terminate even though there are still some threads running,
248+
see \example{pthreads/pthread\_create.c}
246249
\item Be careful not to use this:
247250
\begin{alltt}
248251
for (i = 0; i < N; i++)

0 commit comments

Comments
 (0)