CSCI 4630
Summer 2001
Homework assignment 3

Due: Thursday, May 31.

These exercises are from the text.

  1. 7.2
  2. 7.10 (Imagine the Barber and each customer to be separate threads. Simulate the actions by printing messages such as "Barber goes to sleep", "Barber cuts hair" and "Barber wakes up". You can use either semaphores or Java classes to solve the problem. Take your choice. Keep it simple.)
  3. 7.12
  4. 8.11
  5. 9.7
  6. 9.9