First version of shared memory and semaphores.