...
| Wiki Markup |
|---|
When the JVM interacts with a file system that operates over an unreliable network, file I/O might incur a large performance penalty. In such cases, avoid file I/O over the network while holding a lock. File operations (such as logging) that could block waiting for the output stream lock or for I/O to complete could be performed in a dedicated thread to speed up task processing. Logging requests can be added to a queue, assuming that the queue's {{put()}} operation incurs little overhead as compared to file I/O \[[Goetz 2006|AA. Bibliography#GoetzReferences#Goetz 06]\]. |
Noncompliant Code Example (Deferring a Thread)
...
| Wiki Markup |
|---|
According to the Java API class {{Object}} documentation \[[API 2006|AA. Bibliography#APIReferences#API 06]\] |
Note that the
waitmethod, as it places the current thread into the wait set for this object, unlocks only this object; any other objects on which the current thread may be synchronized remain locked while the thread waits. This method should only be called by a thread that is the owner of this object's monitor.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a4d24171c545ebc2-19742a0d-457c4af4-9d209c13-5b624d96416df5acaccc71ea"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API References#API 06]] | Class | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f4c76e95e9126610-02fbae3a-4ed24a5b-91758a0b-6b315c06d5e55a6b097e7661"><ac:plain-text-body><![CDATA[ | [[Grosso 2001 | AA. Bibliography#Grosso References#Grosso 01]] | [Chapter 10, Serialization | http://oreilly.com/catalog/javarmi/chapter/ch10.html] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2c9d59e8d6e4f936-9df8a0e7-4e584c7f-86f3ab87-f5b59330b2effd1c2ae89672"><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="4c02e7983ea10b92-358b0926-46414a65-94ff8a65-26b9e71e4894f77f46afa03d"><ac:plain-text-body><![CDATA[ | [[Rotem 2008 | AA. Bibliography#Rotem References#Rotem 08]] | [Fallacies of Distributed Computing Explained | http://www.rgoarchitects.com/Files/fallacies.pdf] | ]]></ac:plain-text-body></ac:structured-macro> |
...