09.01.2015 Views

Unix Shared Memory

Unix Shared Memory

Unix Shared Memory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Procedure for Using <strong>Shared</strong> <strong>Memory</strong><br />

Find a key. <strong>Unix</strong> uses this key for identifying<br />

shared memory segments.<br />

Use shmget() to allocate a shared memory.<br />

Use shmat() to attach a shared memory to an<br />

address space.<br />

Use shmdt() to detach a shared memory from<br />

an address space.<br />

Use shmctl() to deallocate a shared memory.<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!