File mappings as IPC: views, visibility and lifetime

Follow one file page through two address spaces, a two-slot handoff and a machine crash, and see why a visible store is not yet in the file. IPC and device I/O · Operating systems.

A sensor stores a new reading through a mapped file and a display reads it a moment later. Is the record complete, and is it in the file?

What you will learn

  • Trace one file page through two shared or private mappings
  • Use a ready marker so that a reader never sees half a record
  • Tell a visible store from a flushed one, and a closed descriptor from an unmapped view

Lesson outline

  1. One page, two addresses
  2. A private mapping copies
  3. A ready marker for the handoff
  4. Visible is not durable

16 minutes · 5 scenes · 0 predict checks · 11 quiz questions

The full lesson is available with Premium.