It then buys/sells the best/worst instruments, and removes their corresponding entry from the sorted list. When this strategy runs in a multi-threaded optimization, it seems like that list is being shared from one instance to another, and it throws an error when one instance tries to access an entry that has been removed by another.
How can I avoid this?
Thanks,
Comment