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="94e4bad456afdb63-96adaca2-4e9e4eeb-aaa7ae37-f08de8e84c67996430eebb20"><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="21fa27d0c3a51775-8e67a77f-4ef0411b-b7c9901c-c6e0bd4773f0866e78d11c3a"><ac:plain-text-body><![CDATA[

[[Halloway 2000

AA. References#Halloway 00]]

 

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

...