Apr-24-2018, 11:31 AM
Guys, I am writing a config manager in python 2.7.14 spawning multi-threads and as a synchronization mechanism, I have to implement it via the second reader-writer problem's solution.
Google search revealed that there is no official support for read-write locks in threading module.
I had found these modules though,
rwlock - patch for threading module (But this has not been documented as it only a proposal)
prwlock - Not an official code
And some other custom python recipes.
Although these are unit tested code, I still don't want to take any chances.
Are there any other official modules containing this feature that I might be missing out?
And if there aren't any, is there any reason as to why this particular feature has not been developed in the threading module?
Google search revealed that there is no official support for read-write locks in threading module.
I had found these modules though,
rwlock - patch for threading module (But this has not been documented as it only a proposal)
prwlock - Not an official code
And some other custom python recipes.
Although these are unit tested code, I still don't want to take any chances.
Are there any other official modules containing this feature that I might be missing out?
And if there aren't any, is there any reason as to why this particular feature has not been developed in the threading module?