Concurrent Collection Interview questions and Answers for experienced and freshers | Code Decode

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 76

  • @akshayengineer2018
    @akshayengineer2018 2 роки тому +7

    This is the Best video on Concurrent HashMap on whole internet. We cant find such explanation anywhere else, Thanks alot Mam 😊

  • @rituparnadeshpande3821
    @rituparnadeshpande3821 3 роки тому +4

    This is the best video on CHM so far... Every video of yours are clear, to the point and well structured.. You explain very well.. This is a very dependable channel.. Thank you

    • @CodeDecode
      @CodeDecode  3 роки тому

      Thanks Rituparna. This means a lot 🙂🙂👍👍. Thanks a ton 🙂

  • @rishiraj2548
    @rishiraj2548 3 місяці тому

    Thanks for this video. Earlier I did not know that there are two concepts in CHM: concurrency level and number of buckets, and together these both spell the magic.

  • @ILuvBilli
    @ILuvBilli 2 роки тому +1

    One important point you forgot to add that we can change legacy collections structure through iterator remove method.

  • @sneharaghuwanshi4933
    @sneharaghuwanshi4933 6 місяців тому

    thank you so much for clearing all the doubts

  • @madanmohanpachouly6135
    @madanmohanpachouly6135 3 роки тому +1

    Clear explanation .. Thanks

  • @suryadoynandan9684
    @suryadoynandan9684 3 роки тому +1

    Thank you so much for upolading such a useful videos...this is helping a lot to clear my logic

    • @CodeDecode
      @CodeDecode  3 роки тому

      Thanks Suryadoy. 🙂🙂👍👍

  • @venkatb8317
    @venkatb8317 3 роки тому +1

    Yes please make video thanks in advance

  • @muralir6768
    @muralir6768 3 роки тому +1

    Nice and expecting more videos like this

  • @nagireddy1507
    @nagireddy1507 2 роки тому +1

    Great explanation...

  • @venkataraghava3173
    @venkataraghava3173 2 роки тому +1

    very nice explanation

  • @sharvarirg984
    @sharvarirg984 11 місяців тому

    Ma'am, You have mentioned t2 can't do read or write on segment 1 at 10:50 . But at 17:00 you said read can happen anywhere, segment does not matter. I'm confused. It would a great help if you help me understand.

    • @pavithraakp2067
      @pavithraakp2067 10 місяців тому

      Read doesn't need any lock. One thread is writing on a segment at a time another thread can read that same segment. Last update value will be returned by get() method.

  • @vickybhoir3017
    @vickybhoir3017 8 місяців тому +1

    nice explaination

  • @prinkpalsingh5028
    @prinkpalsingh5028 3 роки тому +2

    Really helpful.
    Can you please make part2 of concurrent collections

    • @CodeDecode
      @CodeDecode  3 роки тому

      Sure Prinkpal 👍👍🙂🙂

  • @yoshitamahajan353
    @yoshitamahajan353 11 місяців тому

    is there any video for segmentation which u have made.. wanted for refernece

  • @dpkpk1573
    @dpkpk1573 3 роки тому +1

    Nice explanation....

    • @CodeDecode
      @CodeDecode  3 роки тому +1

      Thanks 🙂👍

    • @dpkpk1573
      @dpkpk1573 3 роки тому +1

      @@CodeDecode if possible please also make a Video on creating Custom annotations in java....

    • @CodeDecode
      @CodeDecode  3 роки тому +1

      Nice topic , yes we will create one🙂🙂👍👍

  • @iloradas6387
    @iloradas6387 3 роки тому +2

    Great explaination but can you please explain modcount concept in a bit more detail

    • @CodeDecode
      @CodeDecode  3 роки тому

      Sure llora we will do that👍👍

  • @Iam_Raam
    @Iam_Raam 3 роки тому +2

    Hi, why won't we get ConcurrentModificationException if we are iterating through ForEach loop and updating map during iterating..?

    • @CodeDecode
      @CodeDecode  3 роки тому

      Can you please give a snapshot of your code so that we can explain you

  • @hemantanahak5674
    @hemantanahak5674 2 роки тому +2

    KIndly Please share the program to understand the concurrent hashmap where it is not allowed null and concurrency level program as well with bit more explanation.

    • @CodeDecode
      @CodeDecode  2 роки тому

      Sure we will do that Hemanta 👍👍🙂🙂

  • @venkatsai2541
    @venkatsai2541 3 роки тому +1

    Program why null not allows in concurrent hashmapcode while allowed in hashmap please explain by debugging code

  • @shijipaul2
    @shijipaul2 3 роки тому +1

    Can you please add one video on deployment process

  • @premamalar8550
    @premamalar8550 2 роки тому +1

    Mam in 13.26 timing.. In that slide t1 check the condition and t2 delete the key u said that na.... My question is t2 for delete operation is our assumption?? Is it correct mam??

  • @tulasiramsunkara
    @tulasiramsunkara 3 роки тому +1

    Can you create a separate video to explain concurrency level

  • @kumaraditya9986
    @kumaraditya9986 Рік тому

    Please make a video on why null are not allowed on concurrent hashmap.

  • @venkataraghava3173
    @venkataraghava3173 2 роки тому +1

    can you please exp about semaphore

  • @dhirajbibekar2944
    @dhirajbibekar2944 10 місяців тому

    Please create and upload part 2

    • @CodeDecode
      @CodeDecode  10 місяців тому

      Sure we will create one soon

  • @lohitharg621
    @lohitharg621 Рік тому

    If one thread is accessing the value then on the same bucket other thread cannot modify right then how will it return null?

  • @Iam_Raam
    @Iam_Raam 3 роки тому +1

    If we are iterating through forEach, we will not get ConcurrentModificationException but we will get if iterate through iterator, why ?

    • @ShinAkuma
      @ShinAkuma 3 роки тому

      You are creating an Iterator reference before using it. So while you're traversing the Map and changing it, your Iterator reference is still the old one which was created using the Map which had lesser values.

  • @geekaffairs6475
    @geekaffairs6475 3 роки тому +1

    👍

  • @smitchaudhari9783
    @smitchaudhari9783 2 роки тому

    Hello Mam if null is not allowed the it suppose thread1 is checking so we have lock on that segment then how can thread2 delete it so there can’t be the case where null means thread2 deleted it hence null should be allowed?

    • @ashish7516
      @ashish7516 Рік тому

      Thread1(first one) is just reading, so no lock will be acquired. Hence the second thread (the one writing) can come and delete the value.

  • @pvc7995
    @pvc7995 3 роки тому +1

    Make some real time projects mam and how to integrate front end and back-end .. And deployment of project and bug fixing concepts pls

  • @viji6131
    @viji6131 3 роки тому +1

    Hi. Can u pls make a video on hibernate pls cover n+1 problem and cache concepts pls

    • @CodeDecode
      @CodeDecode  3 роки тому +1

      Very nice topic viji. Will create video on that very soon.

  • @shankardayal6928
    @shankardayal6928 3 роки тому

    As for read ,there is no lock.
    Then say s0 is locked for writing then why does reading not allowed in s0?

  • @samyishere2382
    @samyishere2382 3 роки тому +1

    Mam can you please make video on tricky interview questions of OS🙏

    • @CodeDecode
      @CodeDecode  3 роки тому

      Sure we will plan and upload it soon

  • @PradipYogi59
    @PradipYogi59 3 роки тому

    Wonderful and really great video , can you please share me some good collection books . So I can refer
    And please make more video on OOPS and collection

  • @venkatsai2541
    @venkatsai2541 3 роки тому +1

    Please cover array list

  • @DilaGurung
    @DilaGurung 2 роки тому

    I didn't get the fact since ambiguity is not allowed so concurrent hashmap does not allow null value. But why is hashmap allowing ambiguity.

  • @sandeepgattu5690
    @sandeepgattu5690 3 роки тому

    Please provide the copyonwritearraylist internal working
    That will helps us more...

  • @patnalajahnavi1680
    @patnalajahnavi1680 10 місяців тому

    Can u explain reentrant lock clearly

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 2 роки тому

    create a video at time 13:25

  • @kazaasekhar
    @kazaasekhar 3 роки тому +1

    we don't have chance to give more than one like otherwise my likes count will be one thousad for every videos...

    • @CodeDecode
      @CodeDecode  3 роки тому

      This means a lot Sekhar 🙏🙂👍👍👍👍

  • @rishiraj2548
    @rishiraj2548 2 роки тому +1

    👍