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

Поделиться
HTML-код
  • Опубликовано: 8 июл 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

Комментарии • 352

  • @amitrajitdas31
    @amitrajitdas31 Год назад +114

    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  Год назад +194

    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 Год назад +8

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

  • @casbox2667
    @casbox2667 5 месяцев назад +5

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

  • @manjiripathak5974
    @manjiripathak5974 Год назад

    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.

  • @shreyashchavan6120
    @shreyashchavan6120 Год назад +4

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

  • @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.

  • @mounicareddy728
    @mounicareddy728 8 месяцев назад

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

  • @shahidsarwar256
    @shahidsarwar256 5 месяцев назад

    ABSOLUTELY BEAST MODE EXPLANATION! SOLID!

  • @niftytrading7038
    @niftytrading7038 Год назад +1

    Excellent Course! Very well structured. Thanks a lot!

  • @aishwaryapani4662
    @aishwaryapani4662 Год назад

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

  • @dev.hpatel
    @dev.hpatel 9 месяцев назад

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

  • @user-rj2pd3ig7d
    @user-rj2pd3ig7d 8 месяцев назад

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

  • @ChetanChauhanVlogs
    @ChetanChauhanVlogs 29 дней назад

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

  • @priyamgupta569
    @priyamgupta569 7 месяцев назад

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

  • @sejalseth9475
    @sejalseth9475 3 месяца назад

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

  • @ankur20010
    @ankur20010 6 месяцев назад

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

  • @vamsimudaliar7931
    @vamsimudaliar7931 8 месяцев назад

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

  • @StellasAdi18
    @StellasAdi18 Год назад +2

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

  • @mrityunjoybarman9098
    @mrityunjoybarman9098 9 месяцев назад

    Best ever video on multithreading I'd say.

  • @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.

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

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

  • @saikumargoud3257
    @saikumargoud3257 Год назад

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

  • @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.

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

  • @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

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

  • @ashoke8031
    @ashoke8031 4 месяца назад

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

  • @jagannathan4271
    @jagannathan4271 Год назад

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

  • @kacperaszkieowicz466
    @kacperaszkieowicz466 Год назад +3

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

  • @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.

  • @nandinibanerjee8534
    @nandinibanerjee8534 9 месяцев назад

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

  • @ayushrai6699
    @ayushrai6699 Год назад +2

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

  • @omkaranvekar3554
    @omkaranvekar3554 2 месяца назад

    You really Made threading topic simple Thanks for your help.

  • @shiva4shivendra
    @shiva4shivendra 8 месяцев назад

    Thanks for explaining this complex concept in such an easy way

  • @just_patricia280
    @just_patricia280 3 месяца назад

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

  • @nileshtiwari7499
    @nileshtiwari7499 22 дня назад

    One of the best tutorials on multithreading. 🙌

  • @nikhil_kolla_12
    @nikhil_kolla_12 5 месяцев назад

    Wonderful explanation, really the best video on Java Concurrency.

  • @ramyasruthi5372
    @ramyasruthi5372 2 месяца назад

    Thanks Man! This is Gold!

  • @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.

  • @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..!

  • @nawid31
    @nawid31 3 месяца назад +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.

  • @jiteshsinghvi464
    @jiteshsinghvi464 Месяц назад

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

  • @sahilgandhi9156
    @sahilgandhi9156 Год назад

    Wonderful, Thanks Ridhi

  • @parthdalvi5855
    @parthdalvi5855 Месяц назад

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

  • @vshlmlvliveit
    @vshlmlvliveit 8 месяцев назад

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

  • @rahulgupta-zq3bk
    @rahulgupta-zq3bk 5 месяцев назад

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

  • @riderprovider6213
    @riderprovider6213 Месяц назад

    Awesome work.

  • @pukhrajsikarwar4326
    @pukhrajsikarwar4326 11 месяцев назад

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

  • @ashwinigangarde4717
    @ashwinigangarde4717 5 месяцев назад

    Simply awesome!!!!

  • @dodo79902
    @dodo79902 2 месяца назад

    Excellent work

  • @mayankbadika3101
    @mayankbadika3101 18 дней назад

    Great explanation and thanks for showing this concept with code implementation

  • @shivamkumarsingh3652
    @shivamkumarsingh3652 Год назад +1

    One of the best multithreading explanation 😇

  • @megistone
    @megistone 11 месяцев назад

    Riddhi Dutta, very very BIG THANKS!

  • @R0ulette
    @R0ulette 4 месяца назад

    Thanks! Learned a lot!

  • @aniketmahangare8333
    @aniketmahangare8333 17 дней назад

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

  • @rajnisrivastav2269
    @rajnisrivastav2269 4 месяца назад

    Well explained and easy to grasp.

  • @ytagarwal7
    @ytagarwal7 23 дня назад

    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

  • @theclam1338
    @theclam1338 5 месяцев назад

    Amazing video man thanks a lot!

  • @vatsalkudecha2746
    @vatsalkudecha2746 Год назад

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

  • @tusharabbott9946
    @tusharabbott9946 Год назад +2

    great video. Hoping on more advanced vids.

  • @nikdim_03
    @nikdim_03 11 месяцев назад

    Nice tutorial, thank you!

  • @VIVEKKUMAR-pw1zl
    @VIVEKKUMAR-pw1zl Год назад

    Very informative, Thank you

  • @LordEra
    @LordEra 3 месяца назад

    This has been very helpful in my preparations for exams ✨

  • @himanshutripathi5043
    @himanshutripathi5043 Месяц назад

    Thanks, brother !! 😚

  • @snehomoymaitra9317
    @snehomoymaitra9317 Год назад

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

  • @dcryptoasts5217
    @dcryptoasts5217 11 месяцев назад

    Great tutorial, thx!

  • @kashishsharma6809
    @kashishsharma6809 Год назад

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

  • @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

  • @dimlight1172
    @dimlight1172 Год назад

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

  • @KumarSahil78
    @KumarSahil78 Год назад +2

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

  • @RahulYadav-dd7qe
    @RahulYadav-dd7qe 6 месяцев назад

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

  • @ramanaguru7837
    @ramanaguru7837 Месяц назад

    Great explaination , examples , Great work Team

  • @engineering1year734
    @engineering1year734 Год назад

    Great Video. Thank you for sharing

  • @EZ_Coding_
    @EZ_Coding_ 2 месяца назад

    Your videos are always a lot helpful

  • @TechiiEngineer
    @TechiiEngineer 5 месяцев назад

    Nice; easy to understand multi threading via this video

  • @chetanreddy106
    @chetanreddy106 10 месяцев назад

    Awesome content!!

  • @mykolakozachenko4916
    @mykolakozachenko4916 3 месяца назад

    Very informative video and very easy to understand, thank you

  • @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

  • @monikajuneja2778
    @monikajuneja2778 4 месяца назад

    Informative, best video, keep them coming.

  • @sridharg1421
    @sridharg1421 2 месяца назад

    Thanks :) Learned a lot!

  • @codingwithanonymous890
    @codingwithanonymous890 Год назад +1

    thank you riddhi bhaiyan

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

  • @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.

  • @codephodhdenge5591
    @codephodhdenge5591 7 месяцев назад

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

  • @user-zw1pd8rm6e
    @user-zw1pd8rm6e Год назад +1

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

  • @user-sz8bi1fc3r
    @user-sz8bi1fc3r 5 дней назад

    great learning from u riddhi ! kudos , u have a bright future ahead !

  • @MOHDAASIM-rt9vh
    @MOHDAASIM-rt9vh 2 месяца назад

    you are the person we need how to master java

  • @supun_sandaruwan
    @supun_sandaruwan 4 месяца назад

    Great video Thank you sir

  • @gaflettenkurtul
    @gaflettenkurtul 8 месяцев назад

    great video 👍

  • @hermonabraham8285
    @hermonabraham8285 Год назад

    Thank you so much Dear

  • @AnkitSingh-us2hg
    @AnkitSingh-us2hg Год назад

    this videos help me to crack interview.Thank you so much.

  • @rajeshchoudhary1551
    @rajeshchoudhary1551 Год назад

    A Big thank too you Brother ❤😊

  • @Anilkumar-reddy
    @Anilkumar-reddy Год назад +1

    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

  • @zainulabdin8822
    @zainulabdin8822 8 месяцев назад

    Thnaks for your effort to make this video

  • @shaktirajput4711
    @shaktirajput4711 5 месяцев назад

    Thank you for such awesome videos🤓