Search code examples
pythonc++ubuntumessage-queuedata-synchronization

Passing messages between 2 parallelly running scripts(python and C++)


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.


Solution

  • This post goes into detail and I think will answer your question

    Share memory between C/C++ and Python