Open jkjliang opened 2 years ago
Hi, what i understand is that in general operations that are associative are able to run in parallel. But for stateful operations like sorting where order matters you cant run it in parallel.
Edit: Yea sorry its associative, https://stackoverflow.com/questions/45054372/what-do-the-stream-reduce-requirements-exactly-entail, I think this post explains it pretty well
Operations that are associative can run in parallel. Hope this helps
It seems that all Streams can run in parallel? When you create a stream, it is always a serial stream unless otherwise specified
Mostly the operations whose codes of the order of the execution on the elems of the stream doesn't matter.
Would just like to get clarification regarding some examples of operations that are allowed> (according to the slides it says they need to be stateless and not interfere with stream data but I'm still not too sure what kind of operations fall under those categories)