Homework 2

  1. Do book problems 3.4, 3.5, 3.11
  2. Do book problems 4.1, 4.2, 4.4.
  3. Hello World 2: Electric Boogaloo. You will write a simple Hello World program in C, but there's a catch. You will need to launch two threads, one that prints "hello", and one that prints " world!". You will need a semaphore to make sure that they get printed in the correct order.

    Things to remember:

  4. Due Jan 24. The written portion in class, the code at midnight.