You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Cabrera, Alan" <Al...@reuters.com> on 2004/01/28 23:43:58 UTC

Is SubsystemRouter thread safe?

More specifically, can I have two TransportLoaders feeding into the same
SubsystemRouter?


Regards,
Alan



---------------------------------------------------------------- 
      Visit our Internet site at http://www.reuters.com 

Get closer to the financial markets with Reuters Messaging - for more
information and to register, visit <http://www.reuters.com/messaging> 

Any views expressed in this message are those of  the  individual sender,
except  where  the sender specifically states them to be the views of The
Reuters Group.

Re: Is SubsystemRouter thread safe?

Posted by Kevin Conner <Ke...@which.net>.
Hiram Chirino wrote:

> I've heard but have not confirmed that If you have a machine with multiple processor 
> caches the un-synchronized read of the map might be a problem since it 
> could be looking at a real old cached copy of the map.

This is true, in fact it can be worse because the write accesses to 
memory can be reordered depending on what is flushed from the processor 
cache.

	Kev


Re: Is SubsystemRouter thread safe?

Posted by Hiram Chirino <hi...@coredevelopers.net>.
It's using a copy on write map.  We might need to a synchronized block 
on the read side still.  Are you having issues with it?  I've heard but 
have not confirmed that If you have a machine with multiple processor 
caches the un-synchronized read of the map might be a problem since it 
could be looking at a real old cached copy of the map.

Hiram Chirino wrote:

> Yes it is.
>
> Cabrera, Alan wrote:
>
>> More specifically, can I have two TransportLoaders feeding into the 
>> same SubsystemRouter?
>>
>>
>> Regards,
>> Alan
>>
>>
>>
>> ----------------------------------------------------------------
>>       Visit our Internet site at http://www.reuters.com
>>
>> Get closer to the financial markets with Reuters Messaging - for more 
>> information and to register, visit <http://www.reuters.com/messaging>
>>
>> Any views expressed in this message are those of  the  individual 
>> sender, except  where  the sender specifically states them to be the 
>> views of The Reuters Group.
>>
>


Re: Is SubsystemRouter thread safe?

Posted by Hiram Chirino <hi...@coredevelopers.net>.
Yes it is.

Cabrera, Alan wrote:

> More specifically, can I have two TransportLoaders feeding into the 
> same SubsystemRouter?
>
>
> Regards,
> Alan
>
>
>
> ----------------------------------------------------------------
>       Visit our Internet site at http://www.reuters.com
>
> Get closer to the financial markets with Reuters Messaging - for more 
> information and to register, visit <http://www.reuters.com/messaging>
>
> Any views expressed in this message are those of  the  individual 
> sender, except  where  the sender specifically states them to be the 
> views of The Reuters Group.
>