Skip to content

Commit

Permalink
more on named threads
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Dec 10, 2023
1 parent 619928c commit 5b15dea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions threads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,10 @@
\item for naming threads, Linux distributions might have
\texttt{pthread\_setname\_np} (i.e. without the underscore, unlike the
Solaris/FreeBSD), further cementing the non-portability character.
Anyhow, named threads might be visible in debuggers or in the output
of utilities such as \texttt{ps} (for the latter, that would be in the
\texttt{COMMAND} column, which is usually reserved for program path and its
arguments).
\item Non-portable calls should be used either for system programs or
debugging. You never know when the code will be executed on different system,
which typically happens once you leave the company and having the time to
Expand Down

0 comments on commit 5b15dea

Please sign in to comment.