Think Twice Before Using Java 8 Parallel Streams - DZone Java
There are only two options how to make sure that such thing will never happen. The first is to ensure that all tasks submitted to the common fork-join pool will not get stuck and will finish in a reasonable time. But it's easier said than done, especially in complex applications. The other option is to not use parallel streams and wait until Oracle allows us to specify the thread pool to be used for parallel streams.
Read full article from Think Twice Before Using Java 8 Parallel Streams - DZone Java
No comments:
Post a Comment