Java Concurrency & Multithreading Complete Course in 2 Hours | Zero to Hero | Interview Questions

  Рет қаралды 189,445

Riddhi Dutta

Riddhi Dutta

Күн бұрын

Пікірлер: 394
@amitrajitdas31
@amitrajitdas31 Жыл бұрын
Not a JAVA Dev but the topic of multithreading always made curious, never found so detailed explanation anywhere on YT. The way you explained thread class, object locks & sync was next level.
@rite2riddhi
@rite2riddhi Жыл бұрын
Thank you
@aaronbruckner
@aaronbruckner Жыл бұрын
Very solid work dude. Thanks for taking the time to go over all this. As a 10 year node dev at a big tech company, this was a great java primer. Covering executors would be awesome.
@AyushSingh-hc3pj
@AyushSingh-hc3pj 15 күн бұрын
sir can u please give me refereal as a frontend developer
@cosmoky_19
@cosmoky_19 2 ай бұрын
This is the best video ever created on you tube for multi-threading. I would really be thankful if you will continue making such videos for advanced java concepts in such a detailed way. Thank you once again!!! Also a request to please make videos on all the design patterns in java and advanced multi-threading concepts.
@jiteshsinghvi464
@jiteshsinghvi464 4 ай бұрын
I have an interview coming up regarding concurrency. This stuff was really helpful! Well explained, great job!
@prajaktawalhekar4693
@prajaktawalhekar4693 2 ай бұрын
This video is too good a lot of cases are covered related to multithreading ... Thank you
@harshinredzone
@harshinredzone Жыл бұрын
Bro, I appeared for an interview where a lot of questions I would have answered if I had watched this video. Thanks for fabulous content.
@vellacreator
@vellacreator Ай бұрын
Please please please keep posting such in depth vedios, if you are busy just post one in a month, will be extremely thankful❤❤❤
@jayjoshi1366
@jayjoshi1366 10 ай бұрын
Really appreciated and grateful to get such a content on Multi threading. Please get some more content on Executor framework, Thread schedulers, Thread pooling, various locking mechanisms, etc. Also it would be good if you show some differences between sleep and wait method, start and run method which will imprint all the concepts well in the mind. Thanks a lot again !!
@jairaj5546
@jairaj5546 2 ай бұрын
OMG! Such a great video. Keep posting videos on advanced concepts of java
@Anilkumar-reddy
@Anilkumar-reddy Жыл бұрын
Take a bow for his explanation. Thanks you so much sir. I never seen a person explaining the MultiThreading concepts in these way. Thanks. Please make a video for java 8 also. Thanks
@rite2riddhi
@rite2riddhi Жыл бұрын
Thanks anil. Yes next video on Lambdas.
@user-zw1pd8rm6e
@user-zw1pd8rm6e Жыл бұрын
currently learning c++ with dsa in 1 year will learn java through this video in my 2 year .
@kunalkale8000
@kunalkale8000 Жыл бұрын
Great Explanation for such a tricky topic. Thank you for such Detailed Content..!
@snehomoymaitra9317
@snehomoymaitra9317 Жыл бұрын
Finally, the wait is over...thanks for coming up with the multi threading course
@rite2riddhi
@rite2riddhi Жыл бұрын
More to come!
@shiva4shivendra
@shiva4shivendra 11 ай бұрын
Thanks for explaining this complex concept in such an easy way
@vshlmlvliveit
@vshlmlvliveit 11 ай бұрын
A very good detailed video you can watch to start..👏🏻
@sadvikgowda6474
@sadvikgowda6474 3 ай бұрын
Thanks for this Riddhi. Really this better than Udemy courses.
@megistone
@megistone Жыл бұрын
Riddhi Dutta, very very BIG THANKS!
@RakhiSehrawat-o8p
@RakhiSehrawat-o8p Ай бұрын
I never comment..... but this deserves all the appreciation..... kudos to you Ridhhi..... keep posting such content 🔥🔥
@rite2riddhi
@rite2riddhi Ай бұрын
@@RakhiSehrawat-o8p thanks man
@artilamba1
@artilamba1 5 ай бұрын
The best way ,multithreading is explained
@ganeshbagade7028
@ganeshbagade7028 Жыл бұрын
You are so talented but if this course is in Hindi it will be helpful to learn fastly. Thank you for your efforts 🙏
@gunjankumar7210
@gunjankumar7210 5 ай бұрын
Hi Riddhi, can you please tell me how do we synchronize a static and an instance method by same lock object?
@ramyasruthi5372
@ramyasruthi5372 5 ай бұрын
Thanks Man! This is Gold!
@cool_boi_nikki
@cool_boi_nikki 3 ай бұрын
Nice video. The personification of the thread (he or she) is crazy man 😂😂
@Amit-fn7bw
@Amit-fn7bw 2 ай бұрын
great explanation sir thank you
@SantoshKumar-bu2qr
@SantoshKumar-bu2qr 9 ай бұрын
This is an overview you will get much more understanding after reading about mutex, thread monitor and monitor wait queue
@kashishsharma6809
@kashishsharma6809 Жыл бұрын
Really thanks a lot, Riddhi! Waiting for more java videos.
@namanpandey6725
@namanpandey6725 6 ай бұрын
You said thread class has an object of Runnable interface but we can not create objects of interfaces, right?
@rajnisrivastav2269
@rajnisrivastav2269 7 ай бұрын
Well explained and easy to grasp.
@rhythmvarshney9483
@rhythmvarshney9483 Жыл бұрын
At 01:31:32, what if we have Thread.sleep(1000) just before the poll? In this case, adder 2 will get the lock, and may execute the remove first. While after 1s, thread1 will try to poll again
@supriyamanna715
@supriyamanna715 Жыл бұрын
Great content with awesome thumbnail
@rite2riddhi
@rite2riddhi Жыл бұрын
Thanks 😅
@nikcsm
@nikcsm Жыл бұрын
AMAZING EXPLANATIONS BUDDY , AMAZING :)
@rite2riddhi
@rite2riddhi Жыл бұрын
Thank you
@vinaykaushikinvisble
@vinaykaushikinvisble Жыл бұрын
Great content, salute for your efforts, please make videos on Lock interfaces as well.
@rite2riddhi
@rite2riddhi Жыл бұрын
Thank you
@infiseem
@infiseem Жыл бұрын
Hey Riddhi, thank you so much for the detailed explanation. Can you please provide these slides as well. It will prove to a very helpful for revision later.
@sahilgandhi9156
@sahilgandhi9156 Жыл бұрын
Wonderful, Thanks Ridhi
@shaktirajput4711
@shaktirajput4711 8 ай бұрын
Thank you for such awesome videos🤓
@yadneshkhode3091
@yadneshkhode3091 Жыл бұрын
Please keep making such videos later on also make a video on how to use IDE intellij or eclipse how to add jar files / connect to github etc and other stuff 1 video to cover everything that you do on day to day basis using IDE @rite2riddhi
@himanshutripathi5043
@himanshutripathi5043 4 ай бұрын
Thanks, brother !! 😚
@kirankutte7073
@kirankutte7073 Жыл бұрын
Hey Riddhi, the video lecture is simply awesome. But i have one doubt to ask that its told that start() will call run(), but when we see the Thread class, under the start(), there is no run(). Requesting you Clear this doubt where am i thinking wrong.Thanks in advance! @Riddhi Dutta
@arunkumar-jp9te
@arunkumar-jp9te 6 ай бұрын
Awesome content sir.
@supun_sandaruwan
@supun_sandaruwan 7 ай бұрын
Great video Thank you sir
@hermonabraham8285
@hermonabraham8285 Жыл бұрын
Thank you so much Dear
@bhaskarsharan4280
@bhaskarsharan4280 Жыл бұрын
1:31:00, why would the adder2 again go to the while loop condition? ideally it should wake and resume from the same state. also let's say there is n level nesting of while loop and this thread is anywhere in some n-mth level, so after waking it will start checking from starting conditions, be it while or if block?
@daniyarchapagan2543
@daniyarchapagan2543 Жыл бұрын
Thought about the same problem. Just remember that when you exit the while loop you should check the condition one last time. basically when the adder is notified and stops waiting it goes to the end of the while block and then it should check the condition again in case it is true. if there was only if block it would not check because it is not a loop
@ajayjayswal9139
@ajayjayswal9139 Жыл бұрын
Thank you nice Containt, sir. Where I find PPT and Github code for More Practice.
@girishanker3796
@girishanker3796 Жыл бұрын
Gold content
@queenie_786
@queenie_786 Жыл бұрын
Waiting for microservices as well 💯
@SejalMah.-gr3hh
@SejalMah.-gr3hh Жыл бұрын
Do you have the textual content for the same?
@Mig440
@Mig440 9 ай бұрын
What about newer apis such as structured task scope? That should be easier with virtual threads 😂
@sarkandawale
@sarkandawale 2 ай бұрын
Why to go iit if youtube is free 😂😂
@sahilkhan_cs50
@sahilkhan_cs50 Жыл бұрын
Excellent
@sg0204
@sg0204 Жыл бұрын
From being a gangster at Mirzapur to teaching Java, Munna Bhaiya has came a long way!!!
@skt7088
@skt7088 10 ай бұрын
Which ide u r using?
@sarwarishupadhyay8773
@sarwarishupadhyay8773 Жыл бұрын
Hey Riddhi vai, can you upload your full code repo in some github link, so that i can clone and run it on my local pc, and vai can you also tell us like which of thses things did you use while coding at work, like how much of thses things are relevant in case you used java as backend.. thanks a lot for this video..
@harshinredzone
@harshinredzone Жыл бұрын
Bhai, aapne kahan join kiya? Kya ye time thik hai switch karne ka?
@megistone
@megistone Жыл бұрын
NICE!!!!!!!!!!!
@ravidubey8272
@ravidubey8272 Жыл бұрын
Bhai Maine graduation m ba kiya h kya m java seekh sakta ho job milegi kya reply pleac
@sridharshree3034
@sridharshree3034 Жыл бұрын
Operating systems for sde Interviews.
@sridharshree3034
@sridharshree3034 Жыл бұрын
yup u mentioned in last.. thank you
@rite2riddhi
@rite2riddhi Жыл бұрын
Few advanced things like Executor Framework , Thread Pool , Atomic Integers would cover in a separate video later.(depends on this video's engagement)
@udhayasankar113
@udhayasankar113 Жыл бұрын
Pls cover these topics as well...also streams
@Dragonmx11
@Dragonmx11 Жыл бұрын
Please do , must do
@techdemy4050
@techdemy4050 Жыл бұрын
@Riddhi Dutta Pls cover advance topic also I really loved this content.
@chinmaypingle4770
@chinmaypingle4770 Жыл бұрын
Pls make the next video for advanced concepts
@sayankarmakar13
@sayankarmakar13 Жыл бұрын
please make videos on these
@rite2riddhi
@rite2riddhi Жыл бұрын
Lambdas Next. :)
@subhasishhalder7018
@subhasishhalder7018 Жыл бұрын
Greatt
@yadneshkhode3091
@yadneshkhode3091 Жыл бұрын
@yadneshkhode3091 0 seconds ago Please keep making such videos later on also make a video on how to use IDE intellij or eclipse how to add jar files / connect to github etc and other stuff 1 video to cover everything that you do on day to day basis using IDE @rite2riddhi
@sahilshirodkar3078
@sahilshirodkar3078 Жыл бұрын
I really loved the way you taught these concepts. Please keep coming up with such mini-courses that can help us crack SDE1 Java backend roles. Also, please consider making a video on reactive programming (spring boot web flux) in Java in the future.❤️💯
@rite2riddhi
@rite2riddhi Жыл бұрын
Thank you. Will do.
@Khushi-xw6ie
@Khushi-xw6ie Жыл бұрын
+1
@nawid31
@nawid31 5 ай бұрын
Hello Riddhi, Greetings form Germany. I have an exam at my university in a few days and this was the most helpful video I could find about this topic. Great work, keep it up! I would really like to see these kind of videos for the topics Generics/Wildcards and Sockets/Streams aswell.
@wilhelmmeyer89
@wilhelmmeyer89 10 ай бұрын
This is good. 2 hours with most helpful information. You talk fast. If you wouldn't have talked fast, then I would have increased the speed. This is systematic. The examples are not too simple and you you cover the topic nay you go deeper into it by expalining JVM mechanisms. You know your stuff. This is really helpful for many Java developers. I haven't found such well done videos about threads on Oracle pages or anywhere else. Thank you.
@HardikPatelhardsome
@HardikPatelhardsome Жыл бұрын
Awesome, concept cleared here! After 7 years of reading multithreading here and there. Big Thanks Bro!
@sridharshree3034
@sridharshree3034 Жыл бұрын
How you are speaking that much faster.. and explaining without confusing, You have sound knowledge on those concepts definitely. Thanks for tutorial.. I am learning this concept from you.. Multithreading and speaking skills🤣
@ankitchatterjee1147
@ankitchatterjee1147 6 ай бұрын
and im watching the video x2
@alexaslaan1670
@alexaslaan1670 6 күн бұрын
​@@ankitchatterjee1147same 😂
@sethunagakarthikm4022
@sethunagakarthikm4022 11 ай бұрын
24:33 you were setting the thread1.daemon as true so once the main thread completed his executing the daemon should not run isn't it?
@ayushrai6699
@ayushrai6699 Жыл бұрын
Need a advanced multithreading video too. This was too good🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@casbox2667
@casbox2667 8 ай бұрын
Basically the content of three lectures explained in one. Thanks mate!
@anaysarkar7
@anaysarkar7 Жыл бұрын
@RiddhiDutta DOUBT: at 1:28:13 timestamp As you told there are 2 threads waiting on line 24 , but the code is inside synchronized block how can there be 2 threads inside of a synchronized block ? Am I missing something?
@umanathjha5927
@umanathjha5927 4 ай бұрын
If thread 1 goes into waiting state, it would release the lock which then can be acquired by thread2.
@Harsh-jc2bz
@Harsh-jc2bz 11 күн бұрын
i have a question, in Producer Consumer Probelm 1:26:00 what if thread is never get notified , in case where we have to add 10 element and have to remove only 3 element with capacity 5 , in that case how thread will get notified......thread tph hamesha k liye wait karta rahaiga
@zod1ack_csgo_clips425
@zod1ack_csgo_clips425 5 ай бұрын
I have one doubt. The entire premise of synchronisation is mutual exclusion. In the blocking queue example, while the thread has lock and is in critical section, we are aborting it (wait). And then another thread is allowed to enter critical section. Doesn't this violate the basic principle ?
@ankitakumari9708
@ankitakumari9708 3 ай бұрын
Hi Riddhi I have one doubt : When you did setDaemon(true) for thread1 In that case also It printed "main is starting" "main is exiting" and then 1 to 5 Why did the thread executed even if the main thread was done executing ?
@vellacreator
@vellacreator Ай бұрын
No words can describe how grateful we are, thank you for putting out such valuable content which is offered by many Institute at hefty price of 50k+
@ytagarwal7
@ytagarwal7 3 ай бұрын
As a newbie to this topic I can't tell how well the video is, but indeed it will be really helpful in understanding it deeply since the knowledge and effort you put is 5/5. Thanks
@shreyashchavan6120
@shreyashchavan6120 Жыл бұрын
Thank for starting the series on Java. Looking forward to many more videos from you ☺️
@soumavabanerjee5925
@soumavabanerjee5925 Жыл бұрын
Completed the entire video last night. Will watch it a few more times to clear up some of the concepts. Crystal clear explanations!
@rite2riddhi
@rite2riddhi Жыл бұрын
🥺🙏
@Asus877
@Asus877 2 ай бұрын
i have one doubt--> if we create synchronized block of code now two threads simultaneously came as you said in java every thread has lock now which thread will get inside ? and based on what ? is there any priority for that too ????? please answer
@abhishekjha9905
@abhishekjha9905 Жыл бұрын
I have learned java tutorials earlier from various sources but the way riddhi bhaiya explained is magnificent🔥 top notch content and i've learned multithreading earlier but i'm unknown about lot of internal workings of java concepts.Thanks Bhaiya for making these quality contents yield() such contents regularly😅 .
@harshdhuppar1681
@harshdhuppar1681 Ай бұрын
Sir, it's the best video I found on KZbin covering this concept in great details. I used to fear of this topic whenever I see it or need to use it in my project. I would request to make more such videos please covering this depth. If you want we can recommend you some topics too of whose quality videos are yet not available you can make on them. Your videos help a lot of freshers like me who are just placed / going to be placed in this industry. Hope you will read this & cosider my & everyone's request. I can only say the impact of this video & such type of videos is immense in life of someone.
@jasper5016
@jasper5016 10 ай бұрын
Just one question, I have knowledge of ExecutorService and CompletableFutures. Do I still need to learn these topics? Or ExecutorService take care of it behind the scenes
@indranilchakraborty5949
@indranilchakraborty5949 10 ай бұрын
dada ami service based theke jodi product e jump korte chai then java backend development ki compulsory? na MERN stack is good to go along with DSA and Design??
@zoricamaneva3352
@zoricamaneva3352 7 ай бұрын
Thanks for your video, you're expaling well, but too much talking unnecessarily. The video is too long, many many times repeating same words.
@thomaspandey3661
@thomaspandey3661 2 ай бұрын
Kindly add the reason, why it will give exception when we do thread.start() twice or more on the same thread. give a concrete explanation because in interview they have asked the same thing.
@nani2574
@nani2574 Жыл бұрын
tbh, nothing much delivered in this video. There are lot of topics of multithreading left behind. No one becomes zero to hero watching this video. Some parts of the video you looked like a kid reading out loud trying to memorize the topics just learned for an upcoming exam. We can make it out that you don't have experience with the topic or the industry to deliver information on such a sensitive topic. Just my feedback for you so that you can improve. Still a good video for beginners and a refereshment on basics of multithreading.
@TheSakthibalan
@TheSakthibalan 7 ай бұрын
Great :) I learned many basic things related to threading clearly, 1) mainly object locking- how it works - common object lock across functions will block all those functions for other threads 2) static method lock 3) use of lambda to create runnable Impl ()-> {} 4) why to use While loop in threading instead of if - when used with wait, notify 5) Internal Impl high level details of Thread and Runnable class 6) Deadlock simple example program 7) synchronized method vs block- difference and how lock works in them 8) and some more like functions wait, notify, notifyAll, join, sleep, thread states Please consider to make advanced threading concepts Part 2 video, Part 3 video You can also share the code you used for Demo purpose during this video
@karanchaudhary3850
@karanchaudhary3850 Жыл бұрын
make a viedo on OPPS , SPRING , Spring Core , Spring boot microservices , how two microservices connect , REST API
@anmolverma075
@anmolverma075 Жыл бұрын
Hello Bhaiya! Can you tell me what is the use of Concurrency and Multi threading and where will I find the use case of it? Also , can you make a video on Android Development in 2023 , through Java/Kotlin? It will be helpful for many , I'm in my 3rd sem and in my 4th sem I look forward to deep dive in Android Dev.
@shashankpandey374
@shashankpandey374 3 ай бұрын
in 24:21 the demon thread still got executed is just becz after main thread get executed it check for other user thread and while he was checking is there is any user thread is running or not , demon got executed.
@JayShah_._._
@JayShah_._._ 2 ай бұрын
Also had a doubt in singleton we do make it volatile but we also double check null so we should be okay with not using volatile ?
@GanaviN-f1o
@GanaviN-f1o 2 ай бұрын
bro , pls do executorservice, callable future as next video. waiting for ur other concurrency video
@sandrasuresh5926
@sandrasuresh5926 3 ай бұрын
Thanks for the video ,but why do we use both synchronised and volatile keyword in singleton class
@jasuyadav2511
@jasuyadav2511 Жыл бұрын
Error:- bro you content is super but as you talking speed is very fast so for has become Confusing to understand
@AkshatMehra-l4b
@AkshatMehra-l4b 2 ай бұрын
Bro you are dope !! Thank you so much for all this learning. Grateful 🙏🏼
@SomeshSingh-ug6ns
@SomeshSingh-ug6ns Жыл бұрын
Bhaiya spring boot project banaiye jisme microservice rest api sab kuch cover ho jaye Thank you
@AmanKumar-mu9im
@AmanKumar-mu9im Жыл бұрын
Bhai yaar hindi me phadya karo yaar
@VishakhaSharma-pn5gs
@VishakhaSharma-pn5gs 5 ай бұрын
How while solves the problem and not if-- for the producer, consumer problem
@keshavdeosharma7222
@keshavdeosharma7222 8 ай бұрын
nice video. Which resources did you go through to have a indepth knowledge of the topic?
@kacperaszkieowicz466
@kacperaszkieowicz466 Жыл бұрын
I'm really impressed how you explain abstract topic like multithreading in such an easy way. Keep up the good work 👌
@rite2riddhi
@rite2riddhi Жыл бұрын
Thanks man.
@kashyapvishnudas1466
@kashyapvishnudas1466 3 ай бұрын
Content is great but i feel very lag while watching please make it more concise
@jc3691
@jc3691 26 күн бұрын
Not sure why u speak so fast...i think u need to self review your video before upload on fast speak...pls speak slow..idea is to learn by all level people I think
@akshaypatil1804
@akshaypatil1804 25 күн бұрын
yes crrect, speed is too much not able to concentrate
@puneetkataria9722
@puneetkataria9722 3 ай бұрын
can you please share the github link for this multithreading code
@abhishekpattnaik8531
@abhishekpattnaik8531 3 ай бұрын
Which JDK are you using? At 24:19 when I set daemon to true and run the main program it doesn’t print the Thread1 statements
@alexaslaan1670
@alexaslaan1670 6 күн бұрын
Yhh I was having the same problem 😅
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 53 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Funny superhero siblings
Рет қаралды 4,2 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 3,9 МЛН
Harsh Truth of Java in 2024! Ft. Ultimate Java Developer @Telusko
28:46
My Amazon Interview Experience: How I Got the Job in Just One Week!
7:39
How I Mastered Low Level Design Interviews
8:41
Ashish Pratap Singh
Рет қаралды 77 М.
Java threads 🧵
16:01
Bro Code
Рет қаралды 113 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Kubernetes 101 workshop - complete hands-on
3:56:03
Kubesimplify
Рет қаралды 1,6 МЛН
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 278 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17