Concurrency vs Parallelism

  Рет қаралды 240,565

Defog Tech

Defog Tech

Күн бұрын

Clear the confusion about parallelism and concurrency, and what tools Java provides to enable each concept.
Channel
----------------------------------
Complex concepts explained in short & simple manner. Topics include Java Concurrency, Spring Boot, Microservices, Distributed Systems etc. Feel free to ask any doubts in the comments. Also happy to take requests for new videos.
Subscribe or explore the channel - / defogtech
Popular Videos
----------------------------------
What is an API Gateway - • What is an API Gateway?
Executor Service - • Java ExecutorService -...
Introduction to CompletableFuture - • Introduction to Comple...
Java Memory Model in 10 minutes - • Java Memory Model in 1...
Volatile vs Atomic - • Using volatile vs Atom...
What is Spring Webflux - • What is Spring Webflux...
Java Concurrency Interview question - • Java Concurrency Inter...

Пікірлер: 161
@neetha2447
@neetha2447 2 жыл бұрын
My analogy after going through your video. Parallelism is like cars running on 4 different roads and concurrency is when those roads meet at an intersection how to manage traffic without accident using traffic light. Great video as always 👍🙏
@devtest8078
@devtest8078 3 жыл бұрын
Possibly the best explanation of Concurrency & Parallelism I have ever listened to. Well done.
@rolandovillcaarias5112
@rolandovillcaarias5112 3 жыл бұрын
Hi, what about this definitions, "Parallelism is about doing lot of independent things at once", and "Concurrency is about dealing with lot of dependent things at once", that is what I understood that according your explanation. :)
@pablon3115
@pablon3115 2 жыл бұрын
Best comment ever.
@gnosis8142
@gnosis8142 2 жыл бұрын
I would use "codependent" or "interdependent" instead of "dependent".
@neetha2447
@neetha2447 2 жыл бұрын
Parallelism is like cars running on 4 different roads and concurrency is when those roads meet at an intersection how to manage traffic without accident using traffic lights.
@SpiritualManish
@SpiritualManish 5 жыл бұрын
Awesome as usual, clear voice, simple explanation. Thank you :)
@remarofail9625
@remarofail9625 5 жыл бұрын
For me, it is the best tutorial for explaining concurrency and parallelism
@pranjalabhishek7566
@pranjalabhishek7566 5 жыл бұрын
never seen such explanation anywhere..it cleared my all doubts
@mayurlohar1509
@mayurlohar1509 Жыл бұрын
I checked lot of other tutorials. But the way you explained the things comparing with similar options alongside really helped a lot. This reduces confusion and gives clarity. Thanks brother 😊
@anuragsharma1993
@anuragsharma1993 4 жыл бұрын
It really helped me clear the confusion between parallelism and concurrency.
@puneetmishra545
@puneetmishra545 3 жыл бұрын
Thank you very much for making these concepts clear! This can definitely help many learners to continue or start learning these topics with a greater enthusiasm. Thanks again 👍🏻😊
@nooruskhan5200
@nooruskhan5200 5 жыл бұрын
This (playlist) is best video tutorial on modern multithreading concept, Thanks :)
@Lukadepailuka
@Lukadepailuka 5 жыл бұрын
Best explanation in entire internet. ;)
@cynthia7000
@cynthia7000 3 жыл бұрын
One of the best-explained videos on concurrency, thanks!
@vijayvaswani9717
@vijayvaswani9717 4 жыл бұрын
best video I have ever seen on concurrency and parallelism, this has answered many of questions in my mind.Thanks a lot.
@202rupesh
@202rupesh 4 жыл бұрын
The final summary of the video was awesome and perfect :)
@dwivedys
@dwivedys 2 жыл бұрын
Never seen a clearer explanation of this extremely tricky topic 🙏🙏🙏
@gnanasekaranebinezar7199
@gnanasekaranebinezar7199 5 жыл бұрын
Wow!!! What a vivid explanation!!! Great work. You made hot topic to be more understandable and provided more information within a short span of time
@kavi340
@kavi340 4 жыл бұрын
Simple, clear (audio and video), content full video :-)
@kunalrai7577
@kunalrai7577 2 жыл бұрын
You are simply amazing , I have really not seen such a clear explanation anywhere . God bless you dear brother.
@JayOOfosho
@JayOOfosho 4 жыл бұрын
The best explanation on the topic. Thank you so much!
@pluraltest9242
@pluraltest9242 3 жыл бұрын
Excellent! Easy to understand. Thanks for great video
@akshaysiddhpura5807
@akshaysiddhpura5807 5 жыл бұрын
Very clear explanation. Thank you for creating video on this topics.
@prabhatyadav3373
@prabhatyadav3373 5 жыл бұрын
Awesome video.. thanks for sharing your knowledge
@rpkm85
@rpkm85 5 жыл бұрын
Clear explanation.. keep it up bro..
@NaturalPro100
@NaturalPro100 5 жыл бұрын
Easy,nice and practical examples.Superb job
@dawednesru5353
@dawednesru5353 3 жыл бұрын
I have no word to explain how much awesome you are!
@DivijShrivastava
@DivijShrivastava 5 жыл бұрын
This was very great content. Thanks for sharing🙏
@shankarnathmajumder
@shankarnathmajumder 4 жыл бұрын
Simply Awesome Demonstration.....!!! 👍🏼👍🏼👍🏼👍🏼👍🏼
@sergioantoniomartinez9227
@sergioantoniomartinez9227 4 жыл бұрын
Very helpful explanation, thanks a lot!
@mrutyunjayathakur4597
@mrutyunjayathakur4597 2 жыл бұрын
Thanks for th b video. Waiting for new videos!!
@paraspatel5763
@paraspatel5763 10 ай бұрын
Wonderfully explained. Thank you.
@bharathsc1872
@bharathsc1872 Жыл бұрын
Great content, your videos taking me into next level in concurrency concepts
@Techtter
@Techtter 4 жыл бұрын
Good explanation in simple terms..thanks dude..
@sriharshapamu
@sriharshapamu 2 жыл бұрын
Brilliantly explained :) Thanks a lot
@sanketskhandekar
@sanketskhandekar 3 жыл бұрын
This guy needs support you are superb. Keep uploading new videos
@nishan9689
@nishan9689 5 жыл бұрын
Very nice. Clear explanation.
@sanjaypaudel3296
@sanjaypaudel3296 2 жыл бұрын
You got a new subscriber. What a explanation
@wattheshet
@wattheshet 5 жыл бұрын
Ha! AWESOME VID. I am just starting to learn concurrency for android. Got my sub
@dinakaranonline
@dinakaranonline 2 жыл бұрын
Good one , thanks for sharing
@29_sauravpadghan45
@29_sauravpadghan45 Жыл бұрын
Mind Blowing Explanation
@abhi_tech3590
@abhi_tech3590 4 жыл бұрын
Any damn fool can make things look complex but it takes a genius to give it an easy touch . Great video !!
@goodtime5468
@goodtime5468 2 жыл бұрын
Clear core explanation is an outcome of you wonderful experience. Thank you for making video.
@radityoperwianto1339
@radityoperwianto1339 5 жыл бұрын
Super Great!!!! Thank You so much
@sujitunim
@sujitunim 5 жыл бұрын
Awesome work ... all tut are great
@superdevelopertr6127
@superdevelopertr6127 4 жыл бұрын
super explanation. great thanks!
@nimishgupta749
@nimishgupta749 5 жыл бұрын
Great Explanation.
@sangeethchitravel3092
@sangeethchitravel3092 3 жыл бұрын
Excellent.. clear tone and explanation. Awesome voice
@imansh6995
@imansh6995 2 жыл бұрын
Great explanation, thanks man.
@shellindebted5328
@shellindebted5328 5 жыл бұрын
Thank you so much for this great explanation.A long time confusion was cleared in this video.
@DefogTech
@DefogTech 5 жыл бұрын
You're very welcome sir!
@pinkunew
@pinkunew 5 жыл бұрын
precise explanation in simple words
@bilalhayat7007
@bilalhayat7007 2 жыл бұрын
the way u explain, makes things look damn easy.....!!!!🙏
@AliAshour-ww9ox
@AliAshour-ww9ox Жыл бұрын
thank you very much, great tutorial
@vijaysg4216
@vijaysg4216 2 жыл бұрын
Hi Deepak, Love you content, way of presentation and in-depth concept explanation. Was wondering if you have any repo created for all the code that you showcase as example in the sides. It would really help to grasp the concept even further. Keep up the good work.
@adityaraghav8693
@adityaraghav8693 2 жыл бұрын
clear, explanations !!!!
@ibrahimshaikh3642
@ibrahimshaikh3642 4 жыл бұрын
Very beautiful explanation, plz make more videos like this
@amintalukder8583
@amintalukder8583 3 жыл бұрын
Thats nice... bro.
@qqwew1669
@qqwew1669 3 жыл бұрын
Thanks Dude! You are genius!
@henryliu4085
@henryliu4085 5 жыл бұрын
amazing explanation!
@srinusrinivas6101
@srinusrinivas6101 5 жыл бұрын
Great Explanation
@_________________404
@_________________404 3 жыл бұрын
Thanks for this video, very interesting
@Goateduzi
@Goateduzi 5 жыл бұрын
Great explanation.
@mukulrana1616
@mukulrana1616 3 жыл бұрын
Best . Explanation . Ever!!
@strangerkid8839
@strangerkid8839 3 жыл бұрын
Good Explanation in simple words
@sravankumar5220
@sravankumar5220 Жыл бұрын
Very well explained.
@taiguntales
@taiguntales 3 жыл бұрын
good one bro!!
@cepi24
@cepi24 3 жыл бұрын
Nice explanation. Thanx
@avinashboddu387
@avinashboddu387 3 жыл бұрын
Nice explaination.
@ma-hf6gh
@ma-hf6gh 5 жыл бұрын
You are a great explainer
@DefogTech
@DefogTech 5 жыл бұрын
Thank you :)
@hydtechietalks3607
@hydtechietalks3607 3 жыл бұрын
@@DefogTech Thank you SSSSOOO MUCH SIR.. You have great QUALITY CONTENT! SALUTE TO YOUR EFFORTS!
@shivendratiwari3238
@shivendratiwari3238 4 жыл бұрын
Bro, you are excellent in your explanation and presentation. Why don't you come up with videos on spring boot, everyone wants to learn
@Krish-qn9yv
@Krish-qn9yv 3 жыл бұрын
Awesome 👌
@chrispaika8469
@chrispaika8469 3 жыл бұрын
this is amazing!
@johncerpa3782
@johncerpa3782 3 жыл бұрын
Great explanation
@pramodcv
@pramodcv 5 жыл бұрын
All your videos are too good. The way you explain is awesome. Animation is also very nice.
@DefogTech
@DefogTech 5 жыл бұрын
Thank you for your support Pramod! I am happy it helped
@shreebohara9943
@shreebohara9943 2 жыл бұрын
Very Nice Explaination
@sagarshekhar6296
@sagarshekhar6296 5 жыл бұрын
Simple and straightforward.....Thanks for this excellent video....
@DefogTech
@DefogTech 5 жыл бұрын
You're welcome :)
@electronicmayonnaise5692
@electronicmayonnaise5692 5 жыл бұрын
Thank you.
@abhishekkrishna9757
@abhishekkrishna9757 5 жыл бұрын
Another great video. Thanks for uploading.
@DefogTech
@DefogTech 5 жыл бұрын
You're welcome!
@ismile47
@ismile47 3 жыл бұрын
Thanks you nice explanation
@akhilreddybandi
@akhilreddybandi 2 жыл бұрын
Very Concise
@RajSekharK
@RajSekharK 2 жыл бұрын
Very good explanation
@ankurtripathi9799
@ankurtripathi9799 3 жыл бұрын
this is AKA race condition in os we can use binary semaphore(mutex) to solve this problem which ensures that only one thread can run the piece of code at a time and block other threads in blocking queue.
@ShivamKendre-fc3su
@ShivamKendre-fc3su 4 ай бұрын
great playlist
@rajeshg3570
@rajeshg3570 2 жыл бұрын
Very nice explanation. I've a question here -- I'm just trying to understand how 'CompletableFeature' could be used to achieve concurrency ( i mean to say, in the context of inter leaving)
@KarthikaReddyS
@KarthikaReddyS 4 жыл бұрын
Nice explanation, Just one suggestion it would be great if you could show the difference of both wrto definitions as a single slide it would be good to memorise. For example timestamps 1:32 & 6:51 can be shown next to each other in single slide to communicate the difference effectively
@DefogTech
@DefogTech 4 жыл бұрын
Good point, thanks.. will note it for future videos
@ravikumarmanepalli7456
@ravikumarmanepalli7456 5 жыл бұрын
too good
@mauricemartin3888
@mauricemartin3888 4 жыл бұрын
Thank you so much
@SivaKumar-cx7db
@SivaKumar-cx7db 5 жыл бұрын
Very nice explanation. Thank you.
@DefogTech
@DefogTech 5 жыл бұрын
You're welcome!
@thomassun3046
@thomassun3046 4 жыл бұрын
Excellent, do u know O’Reilly? If u can make a total series of multi-threading courses, I’m going to subscribe to it! U r teaching style is really amazing! Fantastic!
@parmarkamlesh6493
@parmarkamlesh6493 Жыл бұрын
Can you create video for system design like geo location based staff management and some custom frameworks.
@lipi6535
@lipi6535 4 жыл бұрын
My question is "which concept is used when we run the first program in a single-core machine?" As per my understanding (someone correct me if I am wrong): Concurrency is the idea of structuring a program in such a way that it can achieve parallelism when multiple cores are available. It is not about synchronization between threads. Parallelism is about execution and concurrency is about the structure. (Rob Pike). So in that sense, the structure of a multi-threaded application in any modern programming language follows a concurrency pattern. And this can achieve parallelism when multiple cores are available.
@DefogTech
@DefogTech 4 жыл бұрын
Agree about concurrency is about structure. But all programming languages require explicit use of tools (locks, threads, coroutines,async-await etc) to make it happen. Even on single-core machine, a thread waiting for IO can be bounced out and other thread allocated for efficiency (which speedens up the program).
@lipi6535
@lipi6535 4 жыл бұрын
@@DefogTech I totally agree with you on this. To create proper concurrent programs you need tools like mutex locks, routines, threads etc. All I am saying is that program in the first example is also of concurrency. The execution of it is an example of parallelism.
@cepi24
@cepi24 3 жыл бұрын
Pleaae make video about various concurrency models
@opentech5972
@opentech5972 5 жыл бұрын
ty man
@gosnooky
@gosnooky 5 жыл бұрын
People like to bag on Indian KZbinrs, but this guy knows his shit
@abhishekgowlikar
@abhishekgowlikar 2 жыл бұрын
Hats off
@raghavdave1
@raghavdave1 3 жыл бұрын
Can the lock be called inside the 2 thread functions? Instead of defining them outside the functions?
@cpsarathe
@cpsarathe 5 жыл бұрын
If you can convince experienced professional (I am convinced :)) with your explanation I would suggest go for big and conduct professional training online or onsite.
@publicindia1179
@publicindia1179 5 жыл бұрын
Nice one 👍🏼!
@DefogTech
@DefogTech 5 жыл бұрын
Thank you!
@winwinindiamyindia9980
@winwinindiamyindia9980 4 жыл бұрын
In the given example of Parallelism all tasks are independent to each other , but what if they are depends on each other or if they are sharing some object... wouldn't it be similar to concurrency where threads couldn't be execute in parallel manner
@abhishekmishra-ph1dz
@abhishekmishra-ph1dz 5 жыл бұрын
Please make a video of Java timer and TimerTask
@salahayman3513
@salahayman3513 4 жыл бұрын
please provide a tutorial about monitor in threads
@sing10407
@sing10407 2 жыл бұрын
謝謝!
@sing10407
@sing10407 2 жыл бұрын
Thank you for the java concurrency series!
@DefogTech
@DefogTech 2 жыл бұрын
Thank you so much for the appreciation! Really means a lot to me, truly grateful
Java Memory Model in 10 minutes
10:55
Defog Tech
Рет қаралды 255 М.
Introduction to CompletableFuture in Java 8
19:34
Defog Tech
Рет қаралды 320 М.
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 12 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Is it concurrent or parallel?
3:48
Jacob Sorber
Рет қаралды 19 М.
Concurrency vs Parallelism
9:29
Jakob Jenkov
Рет қаралды 62 М.
What is Spring Webflux and when to use it?
17:46
Defog Tech
Рет қаралды 240 М.
Parallelism vs Concurrency
6:30
CodeVault
Рет қаралды 12 М.
Semaphore in Java Concurrency
9:40
Defog Tech
Рет қаралды 108 М.
Concurrency is not Parallelism by Rob Pike
31:22
gnbitcom
Рет қаралды 122 М.
Java ForkJoinPool
27:32
Jakob Jenkov
Рет қаралды 3,1 М.
Phaser vs CountDownLatch vs CyclicBarrier
13:40
Defog Tech
Рет қаралды 75 М.