Errata Page for Concurrent and
Real-Time Programming in Java
Chapter 3: Communication and Synchronization
- page 38 In the startWrite()
method, the "|" operators in the if statement shoule be "||"
- page 39 In the stopRead()
method, the "&" operator in the if
statement should be "&&"
- page 42 The newCondition()
method should return a Condition
not a ConditionObject.
- page 43 The get()
method should not be
synchronized and Lock.newCondition()
should be lock.newCondition()
- page 52 The setPriority(int
NewPriority) method should return void.
Chapter 5
- page 90, the second while loop in the waitB method should be while ((arrived != need) &&
!releasing) wait();
Chapter 8: Memory Management
- page 156 In the waitB()
method, the line "else notifyAll();"
should be just "notifyAll();"
- page 157 In the constructor for the fireMissile class, the call to
the LTMemory constructor
should have a second argument which is the same as the first argument.
- page 158 In the modified constructor for the fireMissile class, the call to
the LTMemory constructor
should have a second argument which is the same as the first argument.
- page 160 Figure 8.9. A box has been missed off the diagram, Here
is what the picture should look like.