Lines Matching refs:memory
2 General semaphore and shared memory test
8 $MEMSIZE = 512; // size of shared memory to allocate
10 $SHMKEY = ftok(__FILE__, 'Q'); // Shared memory key
31 echo "Fail to attach shared memory.\n";
35 echo "Success to attach shared memory.\n";
39 echo "Fail to put var 1 on shared memory $shm_id.\n";
44 echo "Write var1 to shared memory.\n";
48 echo "Fail to put var 2 on shared memory.\n";
53 echo "Write var2 to shared memory.\n";
58 echo "Fail to retrieve Var 1 from Shared memory, return value=$var1.\n";
66 echo "Fail to retrieve Var 2 from Shared memory, return value=$var2.\n";
77 // remove shared memory segmant from SysV
79 echo "Shared memory successfully removed from SysV.\n";
81 echo "Fail to remove shared memory from SysV.\n";
96 Success to attach shared memory.
97 Write var1 to shared memory.
98 Write var2 to shared memory.
102 Shared memory successfully removed from SysV.