Meir Yan wrote:so if i understand you right you suggest that each thread will execute all the actions on each element of the integerList ? right?
Meir Yan wrote:also why is the invokeAll is synchronized ? isn't it aproblem ?
Meir Yan wrote:Thanks for the replay , how would you suggest to divide the integer list to groups of elements, that will be worked by the actions?
Meir Yan wrote:but what about threads timeouts? what about a thread pool to control how many threads i can execute?
does stream support this?