written back to the file, and pages not written must not be. The pages
are then removed from the process's list of virtual pages.
+If two or more processes map the same file, there is no requirement that
+they see consistent data. Unix handles this by making the two mappings
+share the same physical page, but the @code{mmap} system call also has
+an argument allowing the client to specify whether the page is shared or
+private (i.e.@: copy-on-write).
+
@node Project 3 FAQ
@section FAQ
The @command{mcp} program in @file{src/examples} shows how to copy a
file using memory-mapped I/O.
-@item What if two processes map the same file into memory?
-
-There is no requirement in Pintos that the two processes see
-consistent data. Unix handles this by making the two mappings share the
-same physical page, but the @code{mmap} system call also has an
-argument allowing the client to specify whether the page is shared or
-private (i.e.@: copy-on-write).
-
@item What happens if a user removes a @code{mmap}'d file?
The mapping should remain valid, following the Unix convention.