Sample code for using shared memory and creating processes.