CS360 Final Exam. Grading for Question 3

December 13, 1997

17 points

I broke the answer down into seventeen parts and gave ont point per part. Here they are:
  -  sock = server_socket("games.cs.utk.edu")
  -  Initialize a structure to keep track of pipes
  -  while loop
  -  if (nplayers >= NPLAY) { Set up the fd_set
  -  Call select
  -  Loop and call wait
  -  Also close pipes
  - } else {  call accept_connection
  -  call pipe()
  -  call fork()
  -  In the child: make dup calls 
  -  call execpl / exit
  -  In the parent: add p[0] to data structure
  -  Increment nplayers
  -  Close fd
  -  Somehow deal with maxfd.
  -  No extraneous garbage

Histogram of scores