[concurrency-interest] thread queueing qn

Bob Lee crazybob at crazybob.org
Mon Jan 21 19:56:26 EST 2008


On Jan 18, 2008 2:37 PM, Dhanji R. Prasanna <dhanji at gmail.com> wrote:

>    ConversationContext con = readFromStoreById(..);
>    synchronized(con) {
>          filterChain.doFilter(...);     //process request normally
>    }

FWIW, you should also try to keep the requests in the same order. Instead of
a straight synchronized block, you could use a LinkedList of threads and let
them through FIFO style.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20080121/7b16310e/attachment.html 

More information about the Concurrency-interest mailing list