4.03 Question Set

  • Due Nov 20, 2014 at 10:59pm
  • Points 5
  • Questions 5
  • Time Limit None
  • Allowed Attempts Unlimited

Instructions

Before you begin, you should download, extract, and save the Concurrency project in order to be able to examine the behaviors of the various method calls while you are doing the reading. The seven demo drivers correspond to the examples provided in the book (and in the presentation). As you are doing the reading (section 5.7 [pages 340 - 353] of the textbook) run each of the demo methods (several times if needed). Examine the method calls in each of them. You will need to be able to understand why each of them works in the way that it does in order to answer the questions below.

Next, review the Concurrency, Interference, and Synchronization presentation.

Then, answer the following questions taken from the reading.  These questions are based on code segments that utilize classes contained in the provided Concurrency project, including CounterIncreaseIncrease2, and SyncCounter. You should assume that all of the class declarations and method calls are valid and appropriate.

Only registered, enrolled users can take graded quizzes