Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
This compliant solution uses the {{signalAll()}} method to notify all waiting threads. Before {{await()}} returns, the current thread reacquires the lock associated with this condition. When the thread returns, it is guaranteed to hold this lock \[[API 2006|AA. Bibliography#APIReferences#API 06]\]. The thread that is ready can perform its task while all the threads whose condition predicates are false resume waiting.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c6098085655a5217-432934e9-4d8347c3-8c39ac79-bbd3e666581c944da428514c"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API References#API 06]]

java.util.concurrent.locks.Condition interface

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="32f8e4c5f8fa68e9-01333131-46cc4440-9a7484d8-cbd06bf812f62fbf68c07cec"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS References#JLS 05]]

[Chapter 17, Threads and Locks

http://java.sun.com/docs/books/jls/third_edition/html/memory.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1f5184004161d392-0f119385-45754514-9ce091ac-76d7602e1d1de7683ce9186f"><ac:plain-text-body><![CDATA[

[[Goetz 2006

AA. Bibliography#Goetz References#Goetz 06]]

Section 14.2.4, Notification

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9998547bb9132c4a-d9ff1ed4-4a0c45fb-9dbf9834-0ebc1e4028881d4360b90fd5"><ac:plain-text-body><![CDATA[

[[Bloch 2001

AA. Bibliography#Bloch References#Bloch 01]]

Item 50. Never invoke wait outside a loop

]]></ac:plain-text-body></ac:structured-macro>

...