Re: [SPAM] RE: [Quickfix-developers] ThreadedSocketInitiator
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-04-14 20:25:08
|
It is taken care of. On Apr 14, 2004, at 3:19 PM, Shivakumar Keshavamurthy wrote: > Thanks for your reply. > =A0 > What=A0 I meant by Serialzation is actually syncronization of=A0=A0 = requests=20 > from multiple clients(mltiple threads)=A0over a single session. Do I=20= > need to explicitly synchronise my "Session.sendToTarget" method or is=20= > it already taken care in the ThreadedSocketInitiator. > =A0 > -Shivakumar > -----Original Message----- > From: Oren Miller [mailto:or...@qu...] > Sent: Wednesday, April 14, 2004 12:16 PM > To: Shivakumar Keshavamurthy > Cc: qui...@li... > Subject: Re: [Quickfix-developers] ThreadedSocketInitiator > > You can always call Session.sendToTarget without serialization. The=20 > Threaded refers to how it manages the sessions. With a regular=20 > SocketInitiator, all sessions share the same thread for processing=20 > events. With the ThreadedSocketInitiator, each session processes=20 > events in its own thread. This means that you would have to=20 > synchronize the callback methods to your Application class. > > > --oren > > > On Apr 14, 2004, at 12:54 PM, Shivakumar Keshavamurthy wrote: > > > Has anyone used=A0 "ThreadedSocketInitiator"?=A0 How is it different = from=20 > the "SocketInitiator"? > Can I call "Session.sendToTarget" from multiple threads without=20 > serialization? > > > thanks > > > shivakumar > > |