Parallel Streams, CompletableFuture, and All That: Concurrency in Java 8

  Рет қаралды 75,241

Java

Java

Күн бұрын

Пікірлер: 25
@SoyJayP
@SoyJayP 5 жыл бұрын
This video should be watched by every serious Java developer
@Pavan_Gaekwad
@Pavan_Gaekwad 9 ай бұрын
Yes
@SpiritOfIndiaaa
@SpiritOfIndiaaa 5 жыл бұрын
thanks a lot , This video should be watched by every serious Java developer
@sixbrx
@sixbrx 7 жыл бұрын
I enjoyed this, I do a bit of parallel stream processing myself here and there but still learned a few things here. The speaker really packs a lot of good info into this talk.
@pravinjain2834
@pravinjain2834 2 жыл бұрын
This is a really good explaination of using CompletableFuture and parallel streams
@praveens2272
@praveens2272 2 ай бұрын
Excellent talk 👌🏻
@agayevrauf
@agayevrauf 2 ай бұрын
First 7 minutes is marketing, then the real content starts in 7:17
@benjamine.ndugga729
@benjamine.ndugga729 5 жыл бұрын
Interesting to note that the forkJoin pool sets the number of runnables equal to the cpu cores.
@konstantingromov6485
@konstantingromov6485 2 жыл бұрын
Actually number of CPU cores -1
@2hardon
@2hardon Жыл бұрын
0:45
@TawfikShalash
@TawfikShalash Жыл бұрын
amazing video Iam watching at 2023 I hope they released better mac's😂😂😂😂 20:10
@hoangbach9763
@hoangbach9763 3 жыл бұрын
hi, when should i use Project Loom instead of Reactive
@hashcodehub6717
@hashcodehub6717 2 жыл бұрын
@Java can you guys please share the ppt here :) love the video
@DanilErofeev
@DanilErofeev 5 жыл бұрын
I'm a bit confused - Kenneth said that parallelism is not worth it on simple operations like sums even on 10 millions of elements - I've tried immediately with JMH with array of one million random elements just sum() of stream and parallel was ten times faster..
@DerSpudi
@DerSpudi 5 жыл бұрын
I'm not really sure about this but I think he was talking strictly about primitives. I don't know about JMH but if the Array you're testing is for example of type Integer, the autoboxing might have a pretty significant perfomance penalty. Thus making parallelStream worth it again.
@paulhendrix8599
@paulhendrix8599 5 жыл бұрын
Confidential?
@pradeeshbm5558
@pradeeshbm5558 2 жыл бұрын
Why didn't we name it 'concurrentStream' instead of 'parallelStream'?
@mihaiapostol7864
@mihaiapostol7864 Жыл бұрын
he explained in the beginning that "concurrency" is potential, meaning it's not guaranteed it will happen, while parallelism means that tasks will always run in parallel
@DeepakPandey-ij3bz
@DeepakPandey-ij3bz 6 жыл бұрын
Completablefuture is also blocking, until first task is completed second task will not start if second task depends upon first task output... Please explain
@soyphea8697
@soyphea8697 5 жыл бұрын
So it meant you are using the wrong way.
@jfilipcic
@jfilipcic 2 жыл бұрын
@@soyphea8697 I think Deepak means the part where he is creating a completablefuture, calling the getRemote synchronously and than completing the cf with the result. That is blocking, it is waiting for the getRemote to finish. But it is not the CF that is blocking, it is the direct call to the getRemote.
@mihaiapostol7864
@mihaiapostol7864 Жыл бұрын
he explained in the video that the advantages of using CompletableFuture over Future is that, by chaining CompletableFutures one after the other, you'll be sure they will run in the order that you declared them in the "pipeline". unlike the case of Future, where you need to check isDone() billions of time before you can proceed with other Future calls if you care about running tasks in a particular order.
@TomarSahab
@TomarSahab 3 жыл бұрын
beginners you can skip this exp 3+ u shud watch this
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Concurrency Concepts in Java by Douglas Hawkins
44:22
Devoxx Poland
Рет қаралды 51 М.
Are You Using Java's Parallel Streams Correctly? - Java Programming
13:34
Алексей Шипилёв - ForkJoinPool в Java 8
1:40:01
JPoint, Joker и JUG ru — Java-конференции
Рет қаралды 75 М.
Coroutines: Concurrency in Kotlin
30:22
Dave Leeds
Рет қаралды 23 М.
Introduction to CompletableFuture in Java 8
19:34
Defog Tech
Рет қаралды 333 М.
Troubleshooting Memory Problems in Java Applications
42:37
Tomasz Nurkiewicz - CompletableFuture in Java 8, asynchronous processing done right
1:01:10
JPoint, Joker и JUG ru — Java-конференции
Рет қаралды 63 М.
Java Streams: Beyond The Basics
49:21
Jfokus
Рет қаралды 74 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН