Main Page

Previous Next

Exercises

  1. Modify the last example in the chapter so that each transaction is a debit or a credit at random.

  2. Modify the result of the previous exercise to incorporate an array of clerks, each running in their own thread, and each able to handle both debits and credits.

  3. Extend the result of the previous exercise to incorporate two supervisors for two teams of clerks, where the supervisors each run in their own thread. The supervisor threads should originate transactions and pass them to the clerks they supervise.

Previous Next
JavaScript Editor Java Tutorials Free JavaScript Editor