I currently have 2 scripts running parallelly. The first one(C++) saves data and the second one(python) reads and processes it. Currently I am using a .txt file for this purpose. But that is not very efficient and is hard to synchronize.
I need a way to pass messages between a C++ script and python script synchronously? A Queue kind of structure would be ideal.
This post goes into detail and I think will answer your question