This is not a tapestry question but is a general java concurrency question

1. If you do not use synchronized (or one of the java.util.concurrent.*
classes) then multiple threads can enter the method simultaneously.

2. If your method only reads from "shared" immutable fields, you do not need
to worry about synchronizing anything.

3. If your method reads from / writes to a "shared" mutable field, you must
synchronize these blocks of code somehow either by using the "synchronized"
keyword or by using one of the java.util.concurrent.* libraries.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/non-blocking-code-in-T5-tp5713836p5713837.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to