...
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
wait
method, 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="fce3a491111bf198-9c01d7d2-4a564638-940d94ee-663c91aad22f9fbccc08c66a"><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="50770105e60a4356-201785a6-43df45f1-aab6adad-36aaeae94404e4212aa6dec0"><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="a0c1d4fbd6ca8157-c0f108c3-4a904b9a-85e78be1-2da0daeeae535688fe34d1b1"><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="823717bb772849a0-a6f41e6c-480d4b3f-a174b5d5-a0a583609b25df84ff69d935"><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> |
...