Re: [Quickfix-users] FIX::SynchronizedApplication thread usage
Brought to you by:
orenmnero
From: Mark T. K. <mke...@di...> - 2006-07-14 18:49:01
|
i'm talking about the threads within the process. i thought you'd have: 1) the initial 'main' thread, sitting in a loop polling for the end of the sesion. 2) one to dequeue (or transmit) messages (so that processing and reception/transmission are not synchronous). 3) one to deliver callbacks. but you're saying that the thread that receives a message also delivers the callback? so that if the callback blocks, messages won't be received/transmitted until the callback returns? is there an architecture document floating around somewhere? e.g. i made a pass through the online doc and don't recall discovering that SocketInitiator guaranteed synchronized access for its callbacks? /mark Oren Miller wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I'm not really sure I follow. There is only one thread within the > loop. As for total threads within the application, there are two at > this point. One is being occupied by your loop, the other by the > SocketInitiator. > > Also, there isn't any sense using the SynchronizedApplication in > conjunction with the SocketInitiator. You are guaranteed a single > thread to your callbacks. All you are doing is adding overhead. > > --oren > > On Jul 11, 2006, at 3:55 PM, Mark T. Kennedy wrote: > >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ >> html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> >> consider the following server initialization fragment: >> >> while (s->isSessionTime ()) >> { >> // poll once a minute to shut down >> FIX::process_sleep (60); >> } >> >> how many threads will be active within the isSessionTime >> loop? i'm guessing at least 3. > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12162 |