directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
Subject Re: [mina] Synchronization question
Date Tue, 14 Feb 2006 05:21:19 GMT
Hi Fedechicco,

On 2/14/06, <> wrote:
>  As I can read in the FAQ:   > Do I need to make IoHandler and
> ProtocolHandler thread-safe? > You don't need to do because all events
> generated by MINA are transmitted to your handlers in order, and the newer
> event > is not processed if the event handler method for the older event
> for the same session didn't return yet because MINA uses >
> leader-followers thread pool by default.
> Ok, and does that work for the same session only? When I manage multiple
> sessions must I do my own synchronizations between events on different
> sessions?

You have to synchronize the access to the resource shared by multiple
sessions. Except that, you're safe even if you don't synchronize it.

what we call human nature is actually human habit
PGP Key ID: 0x854B996C

View raw message