Grokking Multithreading and Concurrency for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
where are read/write locks in the code?

366movsave

Mar 6, 2025

For me it is compiling, but I don't see any read/write locks, just a regular mutex.

0

0

Comments
Comments
 Vishnu
Vishnu6 months ago

Yes this is again a simple mutex implementation, python doesn’t inherently support shared locks. Either a third party module needs to be imported or threading.Condition needs to be included to get the read/write share lock implementation.

On this page