Menu
I have two Python files. One writes into a data.json file while the other reads from it. Trying to implement a system where writing and reading should wait for each other to finish to avoid data corruption and unexpected bugs. How can this be achieved effectively, considering I’ve tried filelock but it only works one way?