Next Previous Contents

Shared Memory Under Linux

Mike Perry (


This document aims to provide an overview of shared memory under Linux. It coveres both the System V IPC, and BSD mmap(). It is intended for those who have a basic familiarity with ANSI C. A sample and oversimplified malloc debugger is provided as an example program.

1. Introduction

2. BSD mmap

3. Examples

4. Writing a malloc debugger

5. System V IPC

6. System V vs. BSD

Next Previous Contents