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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ก.ค. 2024
  • In this video , I have covered all the important concepts related to Multithreading and Concurrency in Java , covering some of the very important interview questions like synchronization , volatile keyword , producer consumer pattern , deadlocks etc.
    00:00:00 - What to expect in the Course?
    00:02:26 - Multitasking
    00:06:00 - Difference between Thread and a Process
    00:10:28 - Threads in Java
    00:12:50 -The Main Thread
    00:15:33 - Thread Creation in Java
    16:31 - Extending Thread Class to create a Thread
    24:30 - Implementing Runnable
    28:30 - Deep Diving into the Thread Class
    00:39:19 - Synchronization in Java
    40:26 - Race Condition and Introduction to Concurrency
    41:39 - Synchronization Demo with Stacks (Synchronized Methods and Synchronized Blocks)
    52:44 - Using Objects as Locks
    1:02:09 - Synchronization in Static Methods
    1:03:45 - Rules of Synchronization
    1:05:55 - Race Condition
    1:06:55 - Thread Safety
    01:07:20 - The Volatile Keyword
    01:10:46 - Using the Volatile Keyword in Singleton Design Pattern
    01:14:45 - Producer Consumer Problem (Designing a Blocking Queue) (Introducing wait() and notify())
    01:31:45 - Thread States and Thread Transitions
    01:36:17 - Running and Yielding of a Thread
    01:37:20 - Sleeping and Waking Up of a Thread
    01:39:07 - Waiting and Notifying of a Thread
    01:42:28 - Thread Timed Out
    01:43:36 - Interruption of a Thread
    01:44:00 - Thread Joining
    01:48:19 - Thread Priority
    01:49:56 - Thread Scheduler
    01:52:12 - Deadlocks
    01:53:57 - Create a Deadlock in Java. (Interview Question)
    01:57:03- Support my Content
    🔴 Connect with me on Instagram - / code.blooded.voyager and ask me doubts 1:1. Would try to reply to each one of you.
    🔴 Full Collections Framework Crash Course in One Video : • Master Java Collection...
    🔴 Join My Telegram Channel for Placement Updates - telegram.me/riddhi_dutta
    🔴 Connect with me on LinkedIn - / riddhi-dutta
    🔴 Connect with me on Twitter - / rite2riddhi
    🔴 Complete Java Developer roadmap - • How to Master Java A-Z...
    🔴 Complete DSA Syllabus for cracking Product Based Companies : • How to start DSA from ...
    🔴 My DSA Revision Strategy : • How to revise DSA for ...
    🔴 My Low Level Design Preparation Strategy : • How to prepare Low Lev...
    🔴Graph Placement Series From Scratch - • Graphs - The Ultimate ...
    🔴 Low Level Design and Design Pattern Series - • Low Level Design & Des...
    🔴 My Company Review Series - • How to Crack Atlassian...
    🔴 Amazon SDE Revision Sheet - • Video
    🔴 Link to my TopicWise SDE Sheets Playlist : • Trees SDE Coding Probl...
    Tags
    #java #javaprogramming #riddhiduttajava #javadeveloper #javadevelopment #javatutorial #spring #backenddeveloper #multithreadinginjava #multithreading #concurrency #javaconcurrency#backendwebdevelopment #collections #collectionframework
    java concurrency
    java concurrency and multithreading
    java multithreading tutorial
    java multithreading interview questions
    java multithreading project
    multithreading in java
    multithreading interview questions in java
    multithreading in os
    java threads tutorial
    java thread life cycle
    java thread synchronization
    java thread interview questions
    java concurrency tutorial
    java collection framework
    java collection framework course
    java collection framework crash course
    java tutorial for beginners
    java full course
    how to learn java
    java developer
    java developer interview
    java developer roadmap
    java developer course
    java developer work in company
    java developer interview questions
    java developer salary
    java developer jobs for freshers
    java developer interview questions for freshers
    java developer skills needed
    java developer interview questions for 2 years experience
    java developer full course
    java developer roadmap 2022
    java developer salary in india
    java developer roadmap 2023
    java in programming language
    java in project
    java projects
    java projects for beginners
    java programming
    java programming for beginners
    java programming full course
    java programs for practice
    java projects with source code
    java interview questions and answers
    how to learn spring boot step by step
    how to learn spring framework in java
    how to learn spring
    how to learn spring boot
    dependency injection spring boot
    @configuration in spring boot
    how to learn spring boot from scratch
    how to learn spring framework
    java backend development tutorial
    java backend
    java backend developer
    java backend projects
    java backend developer full course
    java backend tutorial
    java backend developer interview questions
    java backend roadmap
    java backend course
    java backend developer skills
    java backend interview questions
    java backend web development

ความคิดเห็น • 346

  • @amitrajitdas31
    @amitrajitdas31 ปีที่แล้ว +110

    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  ปีที่แล้ว +191

    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 ปีที่แล้ว +6

      Pls cover these topics as well...also streams

    • @imdragonm
      @imdragonm ปีที่แล้ว +4

      Please do , must do

    • @techdemy4050
      @techdemy4050 ปีที่แล้ว +5

      @Riddhi Dutta Pls cover advance topic also I really loved this content.

    • @chinmaypingle4770
      @chinmaypingle4770 ปีที่แล้ว +3

      Pls make the next video for advanced concepts

    • @sayankarmakar13
      @sayankarmakar13 ปีที่แล้ว +3

      please make videos on these

  • @aaronbruckner
    @aaronbruckner ปีที่แล้ว +31

    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.

  • @HardikPatelhardsome
    @HardikPatelhardsome ปีที่แล้ว +7

    Awesome, concept cleared here! After 7 years of reading multithreading here and there. Big Thanks Bro!

  • @casbox2667
    @casbox2667 5 หลายเดือนก่อน +4

    Basically the content of three lectures explained in one. Thanks mate!

  • @wilhelmmeyer89
    @wilhelmmeyer89 7 หลายเดือนก่อน +6

    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.

  • @shreyashchavan6120
    @shreyashchavan6120 ปีที่แล้ว +4

    Thank for starting the series on Java. Looking forward to many more videos from you ☺️

  • @manjiripathak5974
    @manjiripathak5974 11 หลายเดือนก่อน

    A surprized video on Multithreading, never thought as learner I will understand so much in details with program. Thanks for deadlock details situation and how to resolve it .

  • @victorpal6915
    @victorpal6915 10 หลายเดือนก่อน

    no one has elaborated Multithreading in this way. This is really awesome.

  • @mounicareddy728
    @mounicareddy728 8 หลายเดือนก่อน

    Amazing content. Best Multithreading video I have watched so far. Great work.

  • @niftytrading7038
    @niftytrading7038 ปีที่แล้ว +1

    Excellent Course! Very well structured. Thanks a lot!

  • @shahidsarwar256
    @shahidsarwar256 4 หลายเดือนก่อน

    ABSOLUTELY BEAST MODE EXPLANATION! SOLID!

  • @aishwaryapani4662
    @aishwaryapani4662 ปีที่แล้ว

    I've never seen such easy explanations of these concepts❤. Thanks a bunch! :)🙏

  • @soumavabanerjee5925
    @soumavabanerjee5925 ปีที่แล้ว +2

    Completed the entire video last night. Will watch it a few more times to clear up some of the concepts. Crystal clear explanations!

  • @user-rj2pd3ig7d
    @user-rj2pd3ig7d 8 หลายเดือนก่อน

    super sir. Literally the multithreading topic was very interesting & have learned lot from this for interview. Thank you!

  • @priyamgupta569
    @priyamgupta569 7 หลายเดือนก่อน

    bhaiya maza aaagya hai ksam se, thread using class and using runnable interface got me hooked to you honestly.
    Great job!

  • @nawid31
    @nawid31 2 หลายเดือนก่อน +4

    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.

  • @dev.hpatel
    @dev.hpatel 9 หลายเดือนก่อน

    Deep Diving into Thread Class chapter is Awesome. You explained in a easy words.

  • @kishansanandia2208
    @kishansanandia2208 6 หลายเดือนก่อน

    Amazing work buddy. You made really complex topic a piece of cake. Thank you so much buddy. Keep up the good work.

  • @ChetanChauhanVlogs
    @ChetanChauhanVlogs 23 วันที่ผ่านมา

    Finally found most of the thing in one video. Thanks for sharing in detailed way.

  • @utkarshyadav6993
    @utkarshyadav6993 10 หลายเดือนก่อน

    This is the real teaching which impacted my understanding and that is what I was searching for. I have a huge expectation from this channel please do post explanation of similar important topics.

  • @jayjoshi1366
    @jayjoshi1366 7 หลายเดือนก่อน

    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 !!

  • @StellasAdi18
    @StellasAdi18 ปีที่แล้ว +2

    Love the energy, passion and way you explain. Pure gem!

  • @sejalseth9475
    @sejalseth9475 3 หลายเดือนก่อน

    You have explained a complex topic in such a simpler way. Thanks !!

  • @aniketmahangare8333
    @aniketmahangare8333 11 วันที่ผ่านมา

    This was genuinely the best content I have seen on this topic. Thanks for this Riddhi.

  • @ankur20010
    @ankur20010 5 หลายเดือนก่อน

    Best lecture on this topic that I have seen for a while.

  • @ameyakasar2148
    @ameyakasar2148 ปีที่แล้ว +1

    This is one of the best videos I have seen about multi-threading, thank you for making such an awesome video. You have great passion in explaining such complex topics and it's a great learning experience to watch your video!

  • @just_patricia280
    @just_patricia280 2 หลายเดือนก่อน

    The way you just explained every detail behind, dude, you are made for this !!! 10/10 fr.

  • @ashoke8031
    @ashoke8031 4 หลายเดือนก่อน

    For this single video alone, you deserve a million subscribers!

  • @nandinibanerjee8534
    @nandinibanerjee8534 9 หลายเดือนก่อน

    this is a great tutorial , crisp and concrete . Waiting for a video with more advance topics of multi threading

  • @jiteshsinghvi464
    @jiteshsinghvi464 หลายเดือนก่อน

    I have an interview coming up regarding concurrency. This stuff was really helpful! Well explained, great job!

  • @kacperaszkieowicz466
    @kacperaszkieowicz466 ปีที่แล้ว +3

    I'm really impressed how you explain abstract topic like multithreading in such an easy way. Keep up the good work 👌

  • @abhishekjha9905
    @abhishekjha9905 ปีที่แล้ว +3

    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😅 .

  • @mrityunjoybarman9098
    @mrityunjoybarman9098 9 หลายเดือนก่อน

    Best ever video on multithreading I'd say.

  • @harshinredzone
    @harshinredzone ปีที่แล้ว +1

    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.

  • @vamsimudaliar7931
    @vamsimudaliar7931 8 หลายเดือนก่อน

    Such an in-depth Explaination. Thank you !!🙂

  • @bhishamudasi1698
    @bhishamudasi1698 8 หลายเดือนก่อน

    Awesome lecture indeed. Very well explained. The only missing part in multithreading which I could think of is JAVA Lock API, which is sometimes asked in interviews as well.

  • @saikumargoud3257
    @saikumargoud3257 ปีที่แล้ว

    thanks a lot @Riddhi now i cleared all doubts of multithreading hoping more and more video lectures in future

  • @mayankbadika3101
    @mayankbadika3101 12 วันที่ผ่านมา

    Great explanation and thanks for showing this concept with code implementation

  • @ayushrai6699
    @ayushrai6699 ปีที่แล้ว +2

    Need a advanced multithreading video too. This was too good🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

  • @ytagarwal7
    @ytagarwal7 17 วันที่ผ่านมา

    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

  • @shiva4shivendra
    @shiva4shivendra 8 หลายเดือนก่อน

    Thanks for explaining this complex concept in such an easy way

  • @nileshtiwari7499
    @nileshtiwari7499 17 วันที่ผ่านมา

    One of the best tutorials on multithreading. 🙌

  • @nikhil_kolla_12
    @nikhil_kolla_12 5 หลายเดือนก่อน

    Wonderful explanation, really the best video on Java Concurrency.

  • @omkaranvekar3554
    @omkaranvekar3554 2 หลายเดือนก่อน

    You really Made threading topic simple Thanks for your help.

  • @rite2riddhi
    @rite2riddhi  ปีที่แล้ว +25

    Lambdas Next. :)

    • @subhasishhalder7018
      @subhasishhalder7018 ปีที่แล้ว

      Greatt

    • @yadneshkhode3091
      @yadneshkhode3091 ปีที่แล้ว +2

      @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

  • @ramyasruthi5372
    @ramyasruthi5372 2 หลายเดือนก่อน

    Thanks Man! This is Gold!

  • @krushnnabaviskar2170
    @krushnnabaviskar2170 ปีที่แล้ว

    Explained concept in details , Thanks for this,Now i will watch other JAVA tuts too.

  • @kunalkale8000
    @kunalkale8000 9 หลายเดือนก่อน

    Great Explanation for such a tricky topic. Thank you for such Detailed Content..!

  • @vshlmlvliveit
    @vshlmlvliveit 8 หลายเดือนก่อน

    A very good detailed video you can watch to start..👏🏻

  • @HaamiJahanian
    @HaamiJahanian หลายเดือนก่อน

    very good video. good to cover concepts like java synchronizers like semaphore and stuff. thanks for your video.

  • @jagannathan4271
    @jagannathan4271 ปีที่แล้ว

    Very Clear explanation.
    You Made it easy to understand😃
    Thankyou

  • @theclam1338
    @theclam1338 4 หลายเดือนก่อน

    Amazing video man thanks a lot!

  • @kashishsharma6809
    @kashishsharma6809 ปีที่แล้ว

    Really thanks a lot, Riddhi! Waiting for more java videos.

  • @tusharabbott9946
    @tusharabbott9946 ปีที่แล้ว +2

    great video. Hoping on more advanced vids.

  • @parthdalvi5855
    @parthdalvi5855 หลายเดือนก่อน

    Great explanation with examples. Thanks for helping so many learners....

  • @snehomoymaitra9317
    @snehomoymaitra9317 ปีที่แล้ว

    Finally, the wait is over...thanks for coming up with the multi threading course

  • @riderprovider6213
    @riderprovider6213 หลายเดือนก่อน

    Awesome work.

  • @rahulgupta-zq3bk
    @rahulgupta-zq3bk 5 หลายเดือนก่อน

    Learnt a lot from your video. Thank you so much for creating such a great video!!

  • @R0ulette
    @R0ulette 4 หลายเดือนก่อน

    Thanks! Learned a lot!

  • @ashwinigangarde4717
    @ashwinigangarde4717 5 หลายเดือนก่อน

    Simply awesome!!!!

  • @sahilgandhi9156
    @sahilgandhi9156 ปีที่แล้ว

    Wonderful, Thanks Ridhi

  • @nikdim_03
    @nikdim_03 11 หลายเดือนก่อน

    Nice tutorial, thank you!

  • @rajnisrivastav2269
    @rajnisrivastav2269 4 หลายเดือนก่อน

    Well explained and easy to grasp.

  • @engineering1year734
    @engineering1year734 ปีที่แล้ว

    Great Video. Thank you for sharing

  • @monikajuneja2778
    @monikajuneja2778 3 หลายเดือนก่อน

    Informative, best video, keep them coming.

  • @sahilshirodkar3078
    @sahilshirodkar3078 ปีที่แล้ว +13

    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.❤️💯

  • @mykolakozachenko4916
    @mykolakozachenko4916 3 หลายเดือนก่อน

    Very informative video and very easy to understand, thank you

  • @ramanaguru7837
    @ramanaguru7837 หลายเดือนก่อน

    Great explaination , examples , Great work Team

  • @pukhrajsikarwar4326
    @pukhrajsikarwar4326 11 หลายเดือนก่อน

    Bhaiya Respect from bottom of my heart for such premium content..!!

  • @dodo79902
    @dodo79902 หลายเดือนก่อน

    Excellent work

  • @sridharg1421
    @sridharg1421 2 หลายเดือนก่อน

    Thanks :) Learned a lot!

  • @dcryptoasts5217
    @dcryptoasts5217 11 หลายเดือนก่อน

    Great tutorial, thx!

  • @chetanreddy106
    @chetanreddy106 9 หลายเดือนก่อน

    Awesome content!!

  • @RahulYadav-dd7qe
    @RahulYadav-dd7qe 6 หลายเดือนก่อน

    I generally don't comment, but this video was very good. I learned a few new things! Thanks!

  • @himanshutripathi5043
    @himanshutripathi5043 หลายเดือนก่อน

    Thanks, brother !! 😚

  • @VIVEKKUMAR-pw1zl
    @VIVEKKUMAR-pw1zl ปีที่แล้ว

    Very informative, Thank you

  • @EZ_Coding_
    @EZ_Coding_ หลายเดือนก่อน

    Your videos are always a lot helpful

  • @TheSakthibalan
    @TheSakthibalan 4 หลายเดือนก่อน

    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

  • @debanwitadutta2303
    @debanwitadutta2303 6 หลายเดือนก่อน

    very informative video..each part is explained with a practical example..thanks a lot for this tutorial 😍...please cover advanced topics as well.

  • @paragroy5359
    @paragroy5359 3 หลายเดือนก่อน

    Nice video.
    Keep on making such videos.
    Really helpful.

  • @LordEra
    @LordEra 3 หลายเดือนก่อน

    This has been very helpful in my preparations for exams ✨

  • @nitishajain6694
    @nitishajain6694 3 หลายเดือนก่อน

    Great Explanation !! You have explained a complex topic in such a simpler way. Thanks !! Please cover advance topics such as Executor Framework as well.

  • @TechiiEngineer
    @TechiiEngineer 5 หลายเดือนก่อน

    Nice; easy to understand multi threading via this video

  • @hrushi_borhade
    @hrushi_borhade 9 หลายเดือนก่อน

    woww this was super informative , thanks man

  • @harshadapatil84
    @harshadapatil84 10 หลายเดือนก่อน

    Awesome!!!

  • @codephodhdenge5591
    @codephodhdenge5591 6 หลายเดือนก่อน

    thanks a lot sir for this playlist it's too good same as graph was

  • @vatsalkudecha2746
    @vatsalkudecha2746 ปีที่แล้ว

    The best thing happened this Sunday!!! 🙌🙌 Starting this right away...

  • @dimlight1172
    @dimlight1172 ปีที่แล้ว

    Thanks a lot sir... Precise and clean explanation.
    My favorite video after your DSA Pattern and LLD video

  • @mohitthakur5571
    @mohitthakur5571 11 หลายเดือนก่อน

    This is so damn goood riddhi. Its just perfect. Waiting for new Java videos

  • @zainulabdin8822
    @zainulabdin8822 7 หลายเดือนก่อน

    Thnaks for your effort to make this video

  • @KumarSahil78
    @KumarSahil78 ปีที่แล้ว +2

    Your teaching style is top-notch, learn a lot from this video.

  • @megistone
    @megistone 11 หลายเดือนก่อน

    Riddhi Dutta, very very BIG THANKS!

  • @shaktirajput4711
    @shaktirajput4711 5 หลายเดือนก่อน

    Thank you for such awesome videos🤓

  • @olakunlebalogun816
    @olakunlebalogun816 2 หลายเดือนก่อน

    Awesome content 👏 👌 👍🏻
    I'll really want you to do a lot more videos on difficult topics like this.

  • @shivamkumarsingh3652
    @shivamkumarsingh3652 ปีที่แล้ว +1

    One of the best multithreading explanation 😇

  • @arunkumar-jp9te
    @arunkumar-jp9te 3 หลายเดือนก่อน

    Awesome content sir.

  • @rajatsingh133
    @rajatsingh133 ปีที่แล้ว

    GOne through lot of video on multi threading but they way you cover is the section "Deep diving into the thread" was awesome thanks for creating such video

  • @user-zw1pd8rm6e
    @user-zw1pd8rm6e ปีที่แล้ว +1

    currently learning c++ with dsa in 1 year
    will learn java through this video in my 2 year .

  • @gaflettenkurtul
    @gaflettenkurtul 8 หลายเดือนก่อน

    great video 👍