Comp111 - Quiz 1

Oct 6, 2009 - closed book

Name:________________________________

Login:______________

Please fill in the blanks. Each blank is worth 5 points. Blanks with the same number label have the same answer.

  1. A pipe is a(n) ________1________ that allows communication between separate ________2________. The call pipe(p) requires p to be a(n) ________3________ of two ________4________. To use printf on these, one must call ________5________ to get a(n) ________6________ corresponding to the pipe's input.
  2. The fork() returns ________7________ for the parent process and ________8________ for the child. The child is an exact ________9________ of the parent. By contrast, the ________10________ call replaces the child's program with another, but preserves open ________11________. The ________12________ call allows one to change the standard input from a child so that it points to a program rather than a terminal.
  3. A ________13________ refers to any situation in which the result of computation depends upon the ________14________ in which processes perform tasks. Simple examples of this include two processes trying to ________15________ from the same ________16________
  4. When a process dies, its ________17________ is saved until its parent ________18________ it. If a parent does not do this, its children become ________19________ who cannot die.
  5. The ________20________ pseudo-filesystem gives all information known about each process.