Hi Eugene and Judson, thanks for your input. Actually I am running and testing the trunk of JBT :-), not the official release. And I see the threads mentionned by Eugene. I did some experiment after my post actually and one single thread running all strats seem well enough for the job...
thanks On Tuesday, 19 February 2013 06:59:16 UTC+9, Eugene Kononov wrote: > > Hello Simba, and welcome to the JBookTrader group. > > In the trading and forward-testing modes, there are 4 threads running: > > 1. NTPClock > 2. MonitoringServer > 3. SnapshotHandler within StrategyRunner > 4. GUI > > In the next release, there will be an additional thread: > 5. ResubscriberRunner > > The SnapshotHandler is indeed used for all running strategies. > The SnapshotHandler's responsibility is to take the snapshot of every > market book (there can be 3 at the most), and invoke each > strategy's process() method. This is done at the start of every second, and > takes a few milliseconds to execute. This can be made multi-threaded, but > unless you run thousands of strategies at the same time, there would be no > effect. At best, you would save a few milliseconds, which is negligible > compared to the sampling time (which is 1 second), and the execution time > (which is about 250 milliseconds). > > However, if you see any significant amount of time spent in the run() > method of SnapshotHandler (such as more than 100 milliseconds), please let > us know. > > Thanks, > Eugene. > > > > On Mon, Feb 18, 2013 at 1:50 PM, Simba DIARRA <[email protected]<javascript:> > > wrote: > >> Hi Eugene and all, >> >> Nice platform! As a newbie I was looking at the code and saw that class >> StrategyRunner will use one single thread to run all strategies in the same >> instance of JBT. >> Is that correct? If so, there is room to improve this and rather use all >> the cpus on a given machine at the best... >> >> >> Cheers >> >> -- >> You received this message because you are subscribed to the Google Groups >> "JBookTrader" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/jbooktrader?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/jbooktrader?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
