Skip to content

Commit

Permalink
add link to new pthread_rwlock example
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Dec 10, 2023
1 parent 4b02fba commit 619928c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions threads.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,7 @@
thread for writing (and no one for reading).
\item Read-write locks are semantically similar to locking files using
\texttt{fcntl} function.
\item See \example{pthreads/pthread-rwlock.c} for a classic use case.
\item It is common that a given implementation prefers writer threads to
reader threads. E.g. if a lock is owned by a writer while some other thread
calls function \funnm{pthread\_rwlock\_rdlock} and there is at least one thread
Expand Down

0 comments on commit 619928c

Please sign in to comment.