semaphore & shared memory segment