I have a program that reads serial port and plot graph with python 3 in raspbery pi. I get 50 bytes per packet and 1000 packet/s so it is a little time consuming work to get and parse those packets. thus I decide to implement it in two different processes using multiprocessing module and use a core for each process. to do this I defined two buffers one is being filled with read_process and the other is being displayed by display_process and using semaphore to synchronise them not to corrupt data.
however I found out that multiprocessing module sharing data is not what I expected as a real sharing memory, as it says this module pickles data and sends it to each process which means it is copying all data instead of sending pointer of that data which reduces speed alot. I just want to know is it possible to send a pointer from one process to another process and how?
