• Object: Complete one of the following 4 problems.
  • Create a directory named ``pup5'' under your home directory.
    This directory must contain
    • Makefile
    • README
    • other files..
  • The problems are
    • Create a bidirectional torus of processes. Check page 140. You should also print the ids of all the processes nicely.
    • Try to compute fibonacci numbers using as much process as possible. But also try to catch the overflow. Check section 4.2. If you have created too much processes and they do not exit normally, you will not be able to create any more process. Watch your code carefully.
    • Achieving mutual exclusion by tokens. Check section 4.3.
    • Achieving mutual exclusion by voting. Check section 4.4. This problem is similar to previous one. Only the access to stderr is, instead of tokens. granted by voting. The messages format and random number should be used just as the the previous one. Also design a strategy to let all processes exit gracefully.
  • Due day, 4/15 00:01am