I am trying to start N threads from one 'host' thread, and as they execute they have to add elements to the same collection in the original 'host' thread. (Execute a compare method and if it returns true, they add the element they were comparing to the collection).
Now, if I have X 'host' threads, is there any way to differentiate between the X instances of the collection in the host thread, or is the only way to keep a map with X entries mapping the 'host' thread to its respective collection? This seems to be a very back door way.