Table of Contents

About

read is a file system io operations that opens the file for read access

OS File System

In the OS file system, it's equivalent to get a file descriptor.

Lock

Generally before reading a file, an application would acquire a shared lock:

  • to prevent any write during the read operation
  • that could led to dirty read