CS31 Weekly Lab: Week 13

pthreads, cpuinfo, top, debugging pthreads programs


Pthread Programming
Look at the Week 12 Weekly Lab page for example pthread code, some hints and resources for debugging pthread programs, and some information about utilities for seeing threads running in the system (useful for testing if your solution is spawing off worker threads that run). There is also information about how to find lab machines with different numbers of CPUs.

Lab 9
Today's lab time is devoted to working on Lab 9.

In today's lab, your group will meet with a faculty member or ninja twice, to discuss the following:

  1. First, show us your function from Lab 6 that plays one round of GOL. We want to have you fix any parts of your sequential GOL solution that may make it more difficult to parallelize.
  2. Second, talk through your general ideas for how you will parallelize GOL. We are looking for about a 1 minute, high-level description of your plan for how to parallelize GOL and if there are any points where you will need to synchronize threads actions.