Package at.jku.ssw.fp.sect09_1
Class Demo2_ParallelStream
- java.lang.Object
-
- at.jku.ssw.fp.sect09_1.Demo2_ParallelStream
-
public class Demo2_ParallelStream extends Object
Demo showing the use of parallel streams for blocking calls. Uses an increased parallelism in the fork-join pool.- Author:
- Herbert Praehofer
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_RETURNS
private static String
PARALLELISM
(package private) static Random
RAND
-
Constructor Summary
Constructors Constructor Description Demo2_ParallelStream()
-
-
-
Field Detail
-
PARALLELISM
private static final String PARALLELISM
- See Also:
- Constant Field Values
-
MAX_RETURNS
private static final int MAX_RETURNS
- See Also:
- Constant Field Values
-
RAND
static final Random RAND
-
-
Method Detail
-
main
public static void main(String[] args)
-
-