Skip to content

IPC Review Questions

Anon edited this page Dec 29, 2016 · 3 revisions
  1. Write a function that uses fseek and ftell to replace the middle character of a file with an 'X'

  2. Write a function that create a pipe and uses write to send 5 bytes, "HELLO" to the pipe. Return the read file descriptor of the pipe.

  3. What are the following and what is their purpose? Translation Lookaside Buffer Physical Address Memory Management Unit. Multilevel page table. Frame number. Page number and page offset. The dirty bit

  4. How do you determine how many bits are used in the page offset?

  5. When is SIGPIPE delivered to a process?

  6. Under what conditions will calling read() on a pipe block? Under what conditions will read() immediately return 0

Clone this wiki locally