Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read write Lock concerns
#1
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?
Reply
#2
There is an official file control module: https://docs.python.org/2.7/library/fcntl.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,479 Nov-09-2023, 10:56 AM
Last Post: mg24
Question Special Characters read-write Prisonfeed 1 635 Sep-17-2023, 08:26 PM
Last Post: Gribouillis
  How do I read and write a binary file in Python? blackears 6 6,720 Jun-06-2023, 06:37 PM
Last Post: rajeshgk
  Read text file, modify it then write back Pavel_47 5 1,639 Feb-18-2023, 02:49 PM
Last Post: deanhystad
  how to read txt file, and write into excel with multiply sheet jacklee26 14 10,062 Jan-21-2023, 06:57 AM
Last Post: jacklee26
  Read JSON via API and write to SQL database TecInfo 5 2,221 Aug-09-2022, 04:44 PM
Last Post: TecInfo
  Write and read back data Aggie64 6 1,907 Apr-18-2022, 03:23 PM
Last Post: bowlofred
  UART Serial Read & Write to MP3 Player Doesn't Work bill_z 15 5,854 Jul-17-2021, 04:19 PM
Last Post: bill_z
  Read and write active Excel file euras 4 3,522 Jun-29-2021, 11:16 PM
Last Post: Pedroski55
  Read file, reformat and write new file bryanmartin113 1 2,228 Jun-08-2021, 09:27 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020