Congratulation Eugene, you won, you're the best ;).

You implemented the same thing than me but quicker than me. There is one think
that differ from my implementation. I was stuck to keep the following loop
outside the workers:

LinkedList<MarketSnapshot> snapshots =
                             optimizerRunner.getBackTestFileReader().getAll();
for (MarketSnapshot marketSnapshot : snapshots) {

       (new thread here....)
}


This is because when we'll get too much data, we'll have to go back with a
streamed method to fill strategies with data. After all each threads will could
read the data separately. Increasing the number of strategies per thread will
reduce the overhead introduced by the multiplications of data read.

For the beauty of the code:
        while (activeThreads != 0) {
            try {
                Thread.sleep(1000);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
I would use a semaphore here instead of this ugly while loop ;)

--
Florent,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to