We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ddccb commit ae21a2dCopy full SHA for ae21a2d
threads.tex
@@ -243,6 +243,9 @@
243
\end{slide}
244
245
\begin{itemize}
246
+\item Once a thread is created, it is up to the scheduler when the thread
247
+will really start running. The thread can voluntarily give up the CPU by using
248
+\texttt{sched\_yield} (this is POSIX function, unlike \texttt{pthread\_yield}).
249
\item If the main thread does not wait for the thread to finish, the whole
250
program will terminate even though there are still some threads running,
251
see \example{pthreads/pthread\_create.c}
0 commit comments