A simple Python multiprocessing example with shared memory queue of numpy arrays.
The example demonstrates a derived multiprocessing.Process object that takes a numpy array as input, processes it, and return a output numpy array.
If you're working on Mac with M chip, install atomics by the following:
export CFLAGS="-Wno-error=deprecated-copy"
export CXXFLAGS="-Wno-error=deprecated-copy"
pip install --no-binary=atomics atomics