Thread Safety in Java

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 92

  • @mehmetyildiz516
    @mehmetyildiz516 Před 4 lety +7

    If you are able to explain things simple, that means you know it very good. This what I feel when I watch this channel.

  • @tmzpanda
    @tmzpanda Před 4 lety +6

    1:39 multiple threads issue
    1:54 example
    2:58 multiple-threads failure
    5:35 why it does not work
    6:25 thread-safety: this method will be executed only by one thread
    6:35 "synchronized"
    6:55 atomic wrapper class - e.g. "AtomicInteger"
    8:01 StringBuilder and StringBuffer (thread-safe)
    8:35 HashMap and ConcurrentHashMap(thread-safe)

  • @viorelcasapu9951
    @viorelcasapu9951 Před 5 lety +24

    My university is starving for a teacher like you :D :D :D

  • @vallezouzgourou2248
    @vallezouzgourou2248 Před 4 lety +7

    Telusko has really done some improvements in tutorial presentation. Bravo to him !! :)

  • @Amartya0234
    @Amartya0234 Před 5 lety +13

    Thank you so much sir, Saw the video when you posted It, And it helped me today answering an interview question.

  • @manroopsinghnanda6138
    @manroopsinghnanda6138 Před 3 lety +3

    The video presentation has drastically improved. Great explanations and kudos for future work!

  • @raghuvardhansaripalli9636

    SUPER THAMMUDU MEERU.. I AM AN ENGINEERING MANAGER. IN INTERVIEW THIS QUESTION WAS ASKED, I COULD NOT ABLE TO answer. When i was a developer i remembered this concept. Yesterday one Sr. Director asked question what is THREAD SAFE. i failed to answer this.
    Now i recollected my concepts with your video. Thank you so much...

  • @piyushmehra8950
    @piyushmehra8950 Před 5 lety +18

    Thank u so much.
    Plz make difference between hashmap vs concurrentHashmap vs Hashtable.

    • @coolfreaks68
      @coolfreaks68 Před 3 lety

      HashMap is the default thing.
      ConcurrentHashMap is most useful thing.
      HashTable sucks.
      That's the difference between the three.
      😆😆😆

  • @codegeek8256
    @codegeek8256 Před 5 lety +1

    Yes Yes Yes Yes Yes Happy Happy To Have You Back In Java World, Please Continue, Java is Hot at the Moment and competing with all this other modern languages, come back Sir Please. Java Tutorials are in demand. @Telusko

  • @JayeshGharat7
    @JayeshGharat7 Před 5 lety +1

    Thanks, felt like a revision + added knowledge of Atomic Integer..
    And the content was very rich, simple to understand and complete .

  • @aadarshvelu6142
    @aadarshvelu6142 Před 5 lety +5

    ++Video quality and
    ++explaination soo good💗

  • @superlistCG
    @superlistCG Před 4 lety

    You are awesome in explaining complex programming concepts with simple examples. Thank you.

  • @XpLoeRe
    @XpLoeRe Před 5 lety +2

    Looking sharp there alien! your'e doing an awesome work! thank you.

  • @Borah_TheExplorer
    @Borah_TheExplorer Před rokem

    wow!!! explained it so simply. Understood at once. Thank you

  • @nitisharora2795
    @nitisharora2795 Před rokem

    literally you have awesome way of presenting

  • @abhishektyagi4428
    @abhishektyagi4428 Před 5 lety +1

    Sir Could you please make a video explaining the resources you use to learn or enhance your programming skills

  • @mohammedsufi4649
    @mohammedsufi4649 Před 5 lety +1

    Thank you Navin. Keep helpings us with your knowledge 😊👍

  • @darlinghareesh629
    @darlinghareesh629 Před 5 lety +2

    Sir, actually I'm a mechanical engineer pass out in 2018 . I'm a fresher in IT domain, which course I have to take for my future growth. ?
    Data science or AI or something ? Please suggest me sir, I'm waiting for your reply.
    Thank you..

    • @tulsikhatri8694
      @tulsikhatri8694 Před 5 lety

      You should start learning python...make command on its fundamental then you can go to AI or Data science...

  • @hashmathali5772
    @hashmathali5772 Před 2 lety

    Explanation is good but awesome if it is somewhat slow sir.

  • @ASinha097
    @ASinha097 Před 4 lety

    Seriously awsm sir,,, super explanation of thread safe in brief. 👌👌👌

  • @oguzhankantarc7301
    @oguzhankantarc7301 Před 3 lety

    Ty for your work, just wanted to add that x0.85 speed feels more normal to me =)

  • @mahmmadmustafamulla9725

    Awesome explanation sir, and very helpful video. Thanks a lot.... 🤝

  • @AadityaKavthekar
    @AadityaKavthekar Před 4 lety +1

    Thank you, Naveen Sir :)

  • @viren3399
    @viren3399 Před 4 lety

    fantastic BGM sir. Awesome lecture as usual.

  • @divyanikashyap4100
    @divyanikashyap4100 Před 2 lety

    Very helpful content. good work.

  • @TheALFOOS
    @TheALFOOS Před 5 lety +1

    clear and simple thank you sir :)

  • @Talch3003
    @Talch3003 Před 5 lety

    Everything was simple and clear

  • @BakhtyarQadri
    @BakhtyarQadri Před 5 lety +1

    Sir please tell me about following videos
    Kotlin with android
    Java components except Swing

  • @AdamVigas
    @AdamVigas Před 2 lety

    Again best explanation...Thanks

  • @karamjitsinghsehdev3451

    Nice Attempt.

  • @YashDalmia123
    @YashDalmia123 Před 2 lety

    Excellent explanation. Thanks a lot

  • @sandeeprathi8813
    @sandeeprathi8813 Před 5 lety

    I like your videos, Awesome work and thanks for it. I would love to see playlist for only interview questions. Please let me know what you think about it

  • @shubhamsaurabh4419
    @shubhamsaurabh4419 Před 5 lety

    Thank you so much sir!!! your way of teaching is awesome!! Sir please also make a video on volatile keyword in java and java native interface.

  • @AbdullahAlMamun-fh9gs
    @AbdullahAlMamun-fh9gs Před 5 lety +1

    Thanks sir and I love you.

  • @darshanpatel9663
    @darshanpatel9663 Před 4 lety

    Very good explanation.

  • @crazeeealgorithms3236
    @crazeeealgorithms3236 Před 4 lety

    Superb explanation Sir.

  • @sachinpathak3084
    @sachinpathak3084 Před 4 lety +1

    so basically, by using synchronous keyword you convert multi programming to uni-programming.

  • @harishk8664
    @harishk8664 Před 5 lety

    Simple and clear.

  • @mrinalmitra8009
    @mrinalmitra8009 Před 3 lety

    Awesome video. Thank You..

  • @korove2
    @korove2 Před 3 lety

    Very helpful thank you!

  • @saddamahmad2310
    @saddamahmad2310 Před 5 lety

    thank you very much sir for this video

  • @abidakhund4811
    @abidakhund4811 Před 3 lety

    Very helpfull thanks

  • @pillu3454
    @pillu3454 Před 4 lety

    but if we are using synchronized keyword then where is multiprocessing? instead of this create only one thread rather than creating two thread which act on synchronized method..

  • @powerisinsoul7061
    @powerisinsoul7061 Před 3 lety +2

    String is non-synchronized methods still it's thread safe how

    • @SauravThakur-gh2es
      @SauravThakur-gh2es Před 3 lety

      Because string objects are immutable

    • @powerisinsoul7061
      @powerisinsoul7061 Před 3 lety

      @@SauravThakur-gh2es hey sagar, could u elobrate this more...

    • @SauravThakur-gh2es
      @SauravThakur-gh2es Před 3 lety

      @@powerisinsoul7061 String is immutable once created can not be changed or modify . The object created as a String is stored in the SCP . Every immutable object in Java is thread safe

  • @hymnish_you
    @hymnish_you Před 4 lety

    GOD at teaching

  • @jaymar921
    @jaymar921 Před 3 lety

    Thank you sir! :D

  • @anirbanroy1524
    @anirbanroy1524 Před 4 lety

    Excellent

  • @shreyashachoudhary480
    @shreyashachoudhary480 Před 2 lety

    Loved it!

  • @rammoorti8619
    @rammoorti8619 Před 5 lety

    Nice 👌

  • @srinivasparusa4315
    @srinivasparusa4315 Před 2 lety

    Hi ..Can we achieve the same with ThreadLocal class?

  • @zaktv3595
    @zaktv3595 Před 2 lety

    you are awesome !!!

  • @tufanatha7798
    @tufanatha7798 Před 5 lety

    Helpful 👍

  • @pranatoshsatpati
    @pranatoshsatpati Před 5 lety

    Thank you sir :)

  • @farisrai2024
    @farisrai2024 Před 4 lety

    if the thread coming from another class, how the thread can access the sync obj or method?

  • @shridharshelake7122
    @shridharshelake7122 Před 4 lety

    Thanks, Please add about java.util.concurrent.locks.Lock interface .

  • @coolfreaks68
    @coolfreaks68 Před 3 lety

    Whenever I interview candidates, I always ask about concurrent hash map. 😁

  • @SaifUlIslam-db1nu
    @SaifUlIslam-db1nu Před 4 lety

    So basically,
    Thread safety == Atomicity / Caring for 'critical sections'

  • @sarfarazhussain6883
    @sarfarazhussain6883 Před 5 lety

    Can you make a video on ExecutorService in Java. Thanks.

  • @shashidharreddy2298
    @shashidharreddy2298 Před 4 lety

    nice video

  • @coding_ss632
    @coding_ss632 Před 5 lety

    Thanks.

  • @r.kirupayoshva696
    @r.kirupayoshva696 Před 5 lety

    Hi sir I'm beginner of java how to make a project using jsp servlet.

  • @DeepeshDarshanKR
    @DeepeshDarshanKR Před 5 lety

    Pretty good

  • @jagannathkv9942
    @jagannathkv9942 Před 4 lety

    how does he go to class description just by clicking on to it

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv Před 5 lety

    Please make video on node js

  • @sudhirjain5436
    @sudhirjain5436 Před rokem

    I love you bro!

  • @DanielFantaneanu
    @DanielFantaneanu Před 2 lety

    nice

  • @MovinduLochana
    @MovinduLochana Před 3 lety

    Thanks sir

  • @dllort69
    @dllort69 Před 5 lety

    Where can I find the best Kotlin course? I've found only shit.. lol

  • @vishnuvardhanreddy8584

    No link in description

  • @aishwaryagandhi798
    @aishwaryagandhi798 Před 2 lety

    I am getting same output with code 3:28Min Each time I run

  • @thakararkeval4759
    @thakararkeval4759 Před 5 lety

    Thanks for making this video

  • @kalpeshprajapati973
    @kalpeshprajapati973 Před 5 lety

    What is Java assertion

  • @dailytech2758
    @dailytech2758 Před 5 lety

    If else statement in Python

  • @rajankhunt7002
    @rajankhunt7002 Před 2 lety

    LIKE THE VIDEO

  • @artsnhobbies4435
    @artsnhobbies4435 Před 5 lety +1

    I am getting 2000 even without using synchronid keyword or AtomicInteger, how is that so?

    • @vasilvasilev5932
      @vasilvasilev5932 Před 5 lety

      Hmm, that is interesting, I can think of a couple of scenarious, you run the code in the example only on one thread and then you see the result of 2000(Only one thread will execute the method and it will surely increment to 2000), you're using a ThreadPool in which a thread is created and it runs the method and then it creates another thread and executes the task(method) and so on, there is a chance that you've ran the code in the example a couple of times and the result was 2000 every time you ran, you used something that is thread safe and didn't know about it, I can't think of something else atm.

    • @Mani_doright
      @Mani_doright Před 3 lety

      I am also getting 2000 always without sync

  • @vaibhavpatil6205
    @vaibhavpatil6205 Před 2 lety

    1:15

  • @rockydods762
    @rockydods762 Před 5 lety

    Hi sir

  • @ratnajitsarkar1708
    @ratnajitsarkar1708 Před 5 lety +1

    First view

  • @rajeevsinghrajput6752
    @rajeevsinghrajput6752 Před 4 lety +1

    Bye Bye......Sir

  • @priyanshuverma3722
    @priyanshuverma3722 Před 5 lety

    first

  • @sadhanasaha9400
    @sadhanasaha9400 Před 5 lety

    Fifth