File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 249
249
\texttt {sched\_ yield } (this is POSIX function, unlike \texttt {pthread\_ yield }).
250
250
\item If the main thread does not wait for the thread to finish, the whole
251
251
program will terminate even though there are still some threads running,
252
- see \example {pthreads/pthread\_ create .c}
252
+ see \example {pthreads/pthread-create .c}
253
253
\item Be careful not to use this:
254
254
\begin {alltt }
255
255
for (i = 0; i < N; i++)
259
259
It looks like we pass each thread its index. However, before the started thread
260
260
gets scheduled to run, a next iteration might happen, modifying \texttt {i }.
261
261
\item \hlabel {WRONG_USE_OF_ARG} Examples: \example {pthreads/wrong-use-of-arg.c},
262
- \example {pthreads/correct-use-of-arg .c}.
262
+ \example {pthreads/correct-use-of-args .c}.
263
263
\item If you need to pass only one value, you could use the following
264
264
(\textbf {note that it is implementation specific in the C standard so it is not
265
265
portable });
You can’t perform that action at this time.
0 commit comments