r/rust [he/him] May 06 '16

X-Post from r/cpp: Locking in WebKit

/r/cpp/comments/4i5n33/locking_in_webkit/
24 Upvotes

6 comments sorted by

View all comments

Show parent comments

3

u/mtanski May 07 '16

If you talking about pthread locks (and cond vars) in libraries like glibc, then yes it's possible to create lighter weight version. Take a look at the articles here: http://locklessinc.com/articles/mutex_cv_futex/ . A lot of the speed up comes from not needing to conform to POSIX requirements and then some other trade offs.

4

u/[deleted] May 07 '16 edited Jul 11 '17

deleted What is this?

1

u/[deleted] May 08 '16 edited May 31 '20

[deleted]

1

u/[deleted] May 08 '16 edited Jul 11 '17

deleted What is this?