PPT Slide
Sharing Memory
- New SOS calls:
void *AttachSharedMemory(int smid, void *smaddr, int flags)
void *DetachSharedMemory(void *smaddr)
- UNIX calls: shmget(), shmctl(), shmop().
Virtual Memory System Examples
- Swap area: section of a disk reserved for pages.
- Usually a separate partition (“swap -l” on xi or “cat /proc/meminfo” on Linux)
- Sometimes part of the filesystem (Windows NT:Settings/Control Panel/System/Performance/Virtual Memory)
- Rule of thumb: swap area = 2 * physical memory