In-class question

* 1. How do memory-mapped files compare with a named pipe? Check all answers that are true.

* 2. What does this code print out?

write(1, "Hello ", 6);
dup2(1, 3);
write(3, "World\n", 6);

T