Тёмный

Java 8 Parallel Streams | Parallel data processing and performance Example | JavaTechie 

Java Techie
Подписаться 172 тыс.
Просмотров 68 тыс.
50% 1

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@nramca
@nramca Год назад
Great way to explain, concept was made clear that’s what matters
@kriswright5112
@kriswright5112 3 года назад
love your channel. thanks for all your hard work.
@ravinasomvanshi6844
@ravinasomvanshi6844 3 года назад
Thank you so much. Very nicely explained.
@devireddyfavreddy4785
@devireddyfavreddy4785 11 месяцев назад
Your way of explanation is really nice and clear
@gauravdewalkar4830
@gauravdewalkar4830 3 года назад
Thanks for all the efforts. ❤️ Keep making videos
@gauravdewalkar4830
@gauravdewalkar4830 3 года назад
Please make more videos on interview questions. Love your work.
@fanaha282
@fanaha282 4 месяца назад
greatjob keep it up. You are going step by step respect for it
@rajenderprasad1193
@rajenderprasad1193 3 года назад
Thank you very much for all the hard work you put for people like me
@robertstan6108
@robertstan6108 3 года назад
Super!!! Thanks for this video.
@nameshs9543
@nameshs9543 3 года назад
Wow man... Awesome tutorial.. All the best !!
@kishordige9721
@kishordige9721 Год назад
This is exceptional!
@Iam_Raam
@Iam_Raam 3 года назад
Thank you brother, clear explanation..
@jeebankishoremaharana3667
@jeebankishoremaharana3667 2 года назад
I really feel the response time today after using this..
@dp-sg8hc
@dp-sg8hc 3 года назад
Java8 playlist (www.youtube.com/watch?v=zp2tq...) shows spring boot tutorial
@aman3318
@aman3318 Год назад
Thanks.. Instead of using employees. ParallelStream() we can also use employees.stream().parallel () , both of them are producing execution from parallel stream.
@Javatechie
@Javatechie Год назад
Yes
@ashwinmarathe9844
@ashwinmarathe9844 Год назад
Very well explained Sir.. thanks
@maruthigajula7613
@maruthigajula7613 3 года назад
It's nice tutorial bro .Keep rocking always
@sahilgandhi9156
@sahilgandhi9156 11 месяцев назад
Superb man, Thanks
@nurte4
@nurte4 3 года назад
very good bro!!! thanks!!
@shikhagupta9063
@shikhagupta9063 2 года назад
Very well explained
@ZiiiP2142
@ZiiiP2142 5 месяцев назад
Super informative.
@MuraliM.A.
@MuraliM.A. Месяц назад
Thanks for the video
@amoldoifode2080
@amoldoifode2080 3 года назад
Great work buddy... Can you please made one video on Saga pattern in microservices
@andresfernandoasfg
@andresfernandoasfg 2 года назад
Very well mate!
@Saravanan-lj9so
@Saravanan-lj9so 3 года назад
Thanks. Please post lot of interview questions.
@josephnairpudupermanil8679
@josephnairpudupermanil8679 2 года назад
Awesome explanation..
@umeshnadargi219
@umeshnadargi219 3 года назад
Very simple explanation
@kishordige9721
@kishordige9721 Год назад
You make it so simple. #JavaTechieUniversity
@samuelsodagudi
@samuelsodagudi 3 года назад
Thank you.
@ultimatum97
@ultimatum97 3 года назад
At 1:27 you said that sequential stream uses multiple threads but single core, but at 8:27 you can see only 1 thread is used by sequential stream. Can you please explain about this more ?
@aaisnep
@aaisnep Год назад
tnkx, good video
@Iam_Raam
@Iam_Raam 3 года назад
Waaw...There are 4 brilliants who didn't like this video.....
@skill675
@skill675 2 года назад
Good explanation
@lpandp90
@lpandp90 7 месяцев назад
thank you!!
@pratishrutipanda6461
@pratishrutipanda6461 3 года назад
Nice content
@koseavase
@koseavase 3 года назад
Genious on RU-vid
@azharmobeen
@azharmobeen 2 года назад
Thanks man
@sheshanath
@sheshanath 3 года назад
Awesome video. I come to know a lot of thing from this video. But here is a question, what if you call parallel stream first and then normal stream in the same program. The execution time shows otherwise .
@Javatechie
@Javatechie 3 года назад
Purpose is different
@sheshanath
@sheshanath 3 года назад
@@Javatechie please specify how it work. if parallel processing is done first and after sequential stream then parallel is taking very much time than sequential.
@sheshanath
@sheshanath 3 года назад
I read some of article regarding, like benchmarking in java, but didn't understood much 😢😢😢😢😢
@rohanpatale9797
@rohanpatale9797 4 месяца назад
tq @Java Techie
@dipak002
@dipak002 3 года назад
Hey, Good video tutorials, but can you describe the pros and cons of using serial and parallel streams. It will be good if you can also say when to use these streams and why.
@Javatechie
@Javatechie 3 года назад
In begin I already mentioned Whenever you doesn't care for order of execution you should go for pareallstrem for example retrieve data from DB But it's always recommend to use write operation using parallstream if your data associated with other dependant entity or model
@dipak002
@dipak002 3 года назад
@@Javatechie I think you are suggesting to use serial stream to write operation if the data is dependent on other entities/models. Right?
@Javatechie
@Javatechie 3 года назад
Yes
@dipak002
@dipak002 3 года назад
@@Javatechie Thanks
@sarojsahoo8763
@sarojsahoo8763 3 года назад
What happens when for certain code one's output will be input for next code to be executed . Even though multiple threads which is equivalent to multiple cores it has to be a serial execution.
@roshanpatro5777
@roshanpatro5777 Год назад
Thank you so much sir! A very useful video❤. I need one help. In my case the execution time for parallel stream is more than that of normal stream. Could you please help me here with the reasoning?
@Javatechie
@Javatechie Год назад
Is it an IO intensive task or CPU intensive task?
@roshanpatro5777
@roshanpatro5777 Год назад
@@Javatechie Thanks for the response. I believe it is a CPU-intensive task because I tried with the same code you used in the video.
@kamleshbca0290
@kamleshbca0290 3 года назад
I want to see the results by swapping code position..like firstly i will print parallel stream code block followed by normal stream and then see the difference
@vamsi0706
@vamsi0706 2 года назад
Hii... I have 3 queried need to run asyn....and need to wait for the results to store in list.... Then after 3 tasks done... I need to proceed further running the remaining code.... In this scenario...could anyone suggest which is better to use... I tried executor service...but it is going sync...not waiting for the threads to complete.... Thanks in advance
@mdrashidalam5282
@mdrashidalam5282 3 года назад
Please explain Linux tutorial and also design pattens
@jdkim7036
@jdkim7036 3 года назад
Thanks, I am wondering how to control exceptions in stream?
@Javatechie
@Javatechie 3 года назад
I will cover that part don't worry
@Tsinepanos
@Tsinepanos 2 года назад
Is there any way to keep the ordering but running in parallel . In your example you loose the ordering in the parallel execution
@Javatechie
@Javatechie 2 года назад
In parallel we can't control order of execution
@srikanthchowdary8595
@srikanthchowdary8595 2 года назад
Thank you very much for the videos, are you working in any it industry
@Javatechie
@Javatechie 2 года назад
Yes 😜
@srikanthchowdary8595
@srikanthchowdary8595 2 года назад
@@Javatechie is there any way to contact you for any queries related to java topics in future
@Javatechie
@Javatechie 2 года назад
javatechie4u@gmail.com
@sudhakarreddy1860
@sudhakarreddy1860 3 года назад
Please add all these in a playlist
@Javatechie
@Javatechie 3 года назад
Please checkout my java 8 playlist
@ritesisright
@ritesisright 3 года назад
Normal stream will be executed by same core???
@Javatechie
@Javatechie 3 года назад
Yes exactly
@bluerobox891
@bluerobox891 2 года назад
How can we try with arraylist as input and work on parallel
@Javatechie
@Javatechie 2 года назад
List.parallelStream() will help you
@itsnarahari
@itsnarahari Год назад
How can we handle if any thread is failing into it ?
@prashanttiwari3687
@prashanttiwari3687 3 года назад
sir ek vedio IntelliJ IDEA espe bana dejeye kaise install kare and kaise spring boot ke stah configure kare please
@Javatechie
@Javatechie 3 года назад
Okay I will
@prashanttiwari3687
@prashanttiwari3687 3 года назад
@@Javatechie thank you so much sir
@narayanchoudhary4415
@narayanchoudhary4415 2 года назад
You have share spring boot playlist instead of java 8.
@itsnarahari
@itsnarahari 3 года назад
How it will works internally ?
@Javatechie
@Javatechie 3 года назад
Please check second example where I log about worker thread
@radugribincea1423
@radugribincea1423 2 года назад
Could someone be so kind to explain me why at my computer, Plain stream took time : 3 but Parallel stream took time : 6. Parallel stream took more time than Plain stream.
@bhashkarsuman3227
@bhashkarsuman3227 Месяц назад
same problem with me
@Javatechie
@Javatechie Месяц назад
Please try to run it couple of times and do the bench marking to figure it out
@anupamshahi3729
@anupamshahi3729 2 года назад
example does not seems to be correct, just flip the code and use parallel stream first and then use sequential stream you will see the sequential one takes less time than parallel one.
@Javatechie
@Javatechie 2 года назад
Thanks Anupam , will check and update
@RealSlimShady-um6gf
@RealSlimShady-um6gf 9 месяцев назад
Using all CPU cores is not advisable and it's noticed CPU usage reaches more than threshold. For personal RND this is ok but not on Production environment. Example to calculate average using parallelstream is not making any sense.
@yogesh970
@yogesh970 2 года назад
* Code is not formatted correctly, inconsistent spaces * One per line, every (.) and operation should come to the next line * Use `Instant` java.time class for start and end and use `Duration` to measure time between them (I know you are not aiming for these things in this example, this is for new developers)
Далее
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Просмотров 2 млн
Parallel Stream Vs Stream in java 8 Stream
6:59
Просмотров 13 тыс.
Git & GitHub Tutorial for Beginners #8 - Branches
10:07
Multithreading in Java Explained in 10 Minutes
10:01
Просмотров 894 тыс.
Смело ставь iOS 18
0:57
Просмотров 177 тыс.
iPhone 15 Pro в реальной жизни
24:07
Просмотров 355 тыс.
Colorful Vulcan w rtx 4070ti Super
13:30
Просмотров 60 тыс.