'Java 8 Parallel Streams Workshop', by Stuart Marks

preview_player
Показать описание
Java 8 Parallel Streams Workshop

One of the promises of the new Lambda and Streams features of Java SE 8 is an easier path to parallel programming. Writing parallel programs is as simple as adding a parallel() call to your stream pipeline. Or is it? Just because something is run in parallel, doesn't mean that it will necessarily run faster. There is inevitable overhead involved in running operations in parallel. The speedup gained from running in parallel might or might not offset this overhead. Another issue is whether certain operations can be performed safely in parallel. Your program might run much faster in parallel, but it doesn't help if you get the wrong answer! Finally, running a computation in parallel not only requires splitting the work so that it can be run by multiple threads, but it also requires merging the results. How to do this is not always obvious, but it's essential to understand merging and reduction in order to write effective parallel programs. The Lambda and Streams support for parallelism in Java SE 8 is not magic that will make all your programs faster. But it does make the mechanics of parallel programming much simpler, so that you can spend more time optimizing parallel algorithms.

Speaker: Stuart Marks, JDK Core Libraries Group, Oracle
Рекомендации по теме
Комментарии
Автор

Awesome video. Very clear and descriptive

bbhusal
Автор

It's a good one. I accidentally ran into the vJUG videos and I love it. Thank you host and Stuart.

arvindsj
Автор

I can listen to Stuart all day long; he's so damn good at explaining stuff...

legerant
Автор

very good and very worthy presentation....

pintunag
Автор

Very good Video that illustrates streams and parallelism. Thanks v JUG

eshgholah
Автор

wow this videos deserved my "Like" more than anything i've watched on youtube in the past years

mlb
Автор

great one.. looking forward more on java concurrency stuff may be even covering java 7 fork/join framework in detail

haree
Автор

I am curious about the jmh framework used in 53.50 and would like to play with it. Can you please share link to the source code.

cschandragiri
Автор

but... you know, lambdas are cool and all but let's be honest, it'd probably be a nightmare to debug these never ending nested calls if something went wrong in a large complex system in production.
The older way of doing things is more cumbersome but way more "debuggable" as i see it

mlb