Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Dynamic Task List: Task added to list 'Review List'

...

Tasklist
Review List
Review List
||Completed||Priority||Locked||CreatedDate||CompletedDate||Assignee||Name||
|F|M|F|1270127769421|          |dmohindr|In "to add overflow checking *within* the synchronized getSum() " ... replace "within" with "to" ?|
|F|M|F|1270674788771|          |dmohindr|"The simple replacement of the two int fields with atomic integers in this example does not eliminate the race condition because the compound operation a + b is still non-atomic."   replace with =>   a.get() + b.get() ?|

...

CON38-J. Synchronize Do not synchronize on a class literal instead of the return value of the class object returned by getClass()      11. Concurrency (CON)      CON01-J. Ensure that compound operations on shared variables are atomic