Click to See Complete Forum and Search --> : shared memory on unix


sheffi
December 5th, 2001, 08:02 AM
how do u create a shared memory on unix ?
i've tried using ftok and shmget to get an id but when i use it with shmat
it doesn't work .
thanks
nir

lancelim
December 7th, 2001, 11:07 PM
do a shmget with IPC_CREAT | IPC_EXEC using IPC_PRIVATE as the key

then go to command prompt and type ipcs, you should be able to see the list of shared memory

lancelim
December 7th, 2001, 11:07 PM
do a shmget with IPC_CREAT | IPC_EXEC using IPC_PRIVATE as the key

then go to command prompt and type ipcs, you should be able to see the list of shared memory