[concurrency-interest] thread queueing qn

Dhanji R. Prasanna dhanji at gmail.com
Mon Jan 21 20:38:07 EST 2008


On 1/22/08, Bob Lee <crazybob at crazybob.org> wrote:
>
> Dhanji,
>
> 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.
>

Bob wont thread waiting give me FIFO semantics anyway? What am I missing
here? My implementation looks a lot like Tim's code (i.e. hashtable of
keys->locks).

Dhanji.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20080122/3f2cf14a/attachment.html 


More information about the Concurrency-interest mailing list