HI Everyone,
i have started exploring various features in
java 7 and 8 for parallelism. i have started going through verious articles on net and try to check if it is really providing me performance benefit with fork join.
following code when i tested sequentially and with fork join it was to my surprise that i found fork join is not giving better performance. i guess i am missing something or doing something wrong.
when i ran this code i found following result
Seq Time For execution 8565153 max value 999
Parallel Time For execution 201782136 maxValueParallel 999
ideally my fork join must give me faster response but i am unable to see same.