Re: [Quickfix-users] FIX::SynchronizedApplication thread usage
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2006-07-11 21:21:18
|
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. |