On Fri, 13 Jul 2007 16:59:28 -0700, MenTaLguY <mental / rydia.net> wrote: >> The problem with synchronization is that only one message can be sent at >> a time. > > It also establishes an ordering between delivery and (un)subscription, > which might be important. On the other hand, if your clients are robust against > unexpected messages, you can certainly take advantage of extra concurrency > to get better throughput. note: here, I'm comparing synchronized approaches which hold the lock during message delivery with synchronized approaches which do not. The example code I gave belongs to the latter category. -mental