I am building a kiosk app for Raspberry Pi using PyQt5, and my main window has some buttons which open other windows. Multiple windows reference the same local files using the python open file function, so I am wondering if i need to make these file accesses thread safe. If so, how do you reccomend I do that?
I am considering using Thread Locks, but my understanding is that these only work for different threads and not different processes. It is also difficult to test if my solution works because the only signal is that it occasionally crashed and deletes the the referenced file. I imagined this may be caused by faulty concurrent writes.
Rio Voss-Kernan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.