Search code examples
cmemory

When does non-readable memory page happen?


The question is self-explanatory (I think). If a program is accessing memory, say 4 bytes at a time, when does the memory happen to be non-readable, as opposed to say, hold garbage?


Solution

  • Whenever the program is not allowed to read it.

    This is the job of the MMU to allow or forbid access on memory. This is the job of the OS to specify which program is allowed to access which memory zone.