When I use shared memory, I can ask the OS memory which is allowed to execute. Is it possible to write to the memory the executable code in python (from a python process) and then execute it from a Java process?
I have a Java process that receives some data from a remote server, and another process in Python that knows how to process that data. After the Java process receives the data, it needs the processed data back. So Instead of sending the data to the python process and then get it back, I thought maybe the python process can share its processing code and the Java process will just use it. This way there's no need to lock the memory while writing.