- demo.h5: dummy hdf5 file for demo purposes
- generate_demo_hdf5_file: for generating demo.h5
Transferring numpy arrays to the shared memory and reading them back in another process.
Transferring the content of demo.h5
in the shared memory and
reading it as a dictionary of numpy arrays in another process.
Transfer numpy arrays to the shared memory in a persistent manner: the shared memory is not freed when the process exits.
Numpy arrays written by demo_transfer are accessed.
The data written by demo_transfer
will live in the RAM until
this demo is called (or the cleaned up by deleting files
in /dev/shm
and /tmp/cute-shm
)
Write an array to the shared memory and keep updating it, until ctrl+c
is pressed.
Read the array from the shared memory and displays it in the terminal until ctrl+c
is pressed.
Assumes that the demo demo_server
is running in another terminal.