Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: initialTransfer() is a static method.

...

Code Block
BankAccount a = new BankAccount(5000);
BankAccount b = new BankAccount(6000);
BankAccount.initiateTransfer(a, b, 1000); // starts thread 1
BankAccount.initiateTransfer(b, a, 1000); // starts thread 2

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="df31b33ce69f24f4-16defc49-44164c41-8d33999b-246963f4279bf95dbe08d417"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. 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="db22694f771a3981-99a1727c-409b4dc4-b3ec9333-3f2ef6875c31607a68b5d4e2"><ac:plain-text-body><![CDATA[

[[Halloway 2000

AA. References#Halloway 00]]

 

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

...