How does Java handle Threads using Java Parallel Streams with the reduce function. Does every accumulator get its own thread? And if so, how many are there at one point of the time, does it depend on the stream size or on the machine its running on. Also where is all of that handled and managed?
Asked
Active
Viewed 43 times
0
-
1check this https://stackoverflow.com/questions/30802463/how-many-threads-are-spawned-in-parallelstream-in-java-8 – mayank bansal May 23 '20 at 14:49
-
What research have you done so far? – akuzminykh May 23 '20 at 15:27
-
That helped me out, thanks! – R4yY May 24 '20 at 13:30