Skip to content

Commit 5b15dea

Browse files
committed
more on named threads
1 parent 619928c commit 5b15dea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

threads.tex

+4
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,10 @@
15731573
\item for naming threads, Linux distributions might have
15741574
\texttt{pthread\_setname\_np} (i.e. without the underscore, unlike the
15751575
Solaris/FreeBSD), further cementing the non-portability character.
1576+
Anyhow, named threads might be visible in debuggers or in the output
1577+
of utilities such as \texttt{ps} (for the latter, that would be in the
1578+
\texttt{COMMAND} column, which is usually reserved for program path and its
1579+
arguments).
15761580
\item Non-portable calls should be used either for system programs or
15771581
debugging. You never know when the code will be executed on different system,
15781582
which typically happens once you leave the company and having the time to

0 commit comments

Comments
 (0)