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)
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...
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
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..
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
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 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
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.
If you are able to explain things simple, that means you know it very good. This what I feel when I watch this channel.
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)
My university is starving for a teacher like you :D :D :D
Yours is not the only one buddy.
Literally all small universities, colleges and schools
Telusko has really done some improvements in tutorial presentation. Bravo to him !! :)
Thank you so much sir, Saw the video when you posted It, And it helped me today answering an interview question.
The video presentation has drastically improved. Great explanations and kudos for future work!
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...
Thank u so much.
Plz make difference between hashmap vs concurrentHashmap vs Hashtable.
HashMap is the default thing.
ConcurrentHashMap is most useful thing.
HashTable sucks.
That's the difference between the three.
😆😆😆
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
Thanks, felt like a revision + added knowledge of Atomic Integer..
And the content was very rich, simple to understand and complete .
++Video quality and
++explaination soo good💗
You are awesome in explaining complex programming concepts with simple examples. Thank you.
Looking sharp there alien! your'e doing an awesome work! thank you.
wow!!! explained it so simply. Understood at once. Thank you
literally you have awesome way of presenting
Sir Could you please make a video explaining the resources you use to learn or enhance your programming skills
Thank you Navin. Keep helpings us with your knowledge 😊👍
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..
You should start learning python...make command on its fundamental then you can go to AI or Data science...
Explanation is good but awesome if it is somewhat slow sir.
Seriously awsm sir,,, super explanation of thread safe in brief. 👌👌👌
Ty for your work, just wanted to add that x0.85 speed feels more normal to me =)
Awesome explanation sir, and very helpful video. Thanks a lot.... 🤝
Thank you, Naveen Sir :)
fantastic BGM sir. Awesome lecture as usual.
Very helpful content. good work.
clear and simple thank you sir :)
Everything was simple and clear
Sir please tell me about following videos
Kotlin with android
Java components except Swing
Again best explanation...Thanks
Nice Attempt.
Excellent explanation. Thanks a lot
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
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.
Thanks sir and I love you.
Very good explanation.
Superb explanation Sir.
so basically, by using synchronous keyword you convert multi programming to uni-programming.
Simple and clear.
Awesome video. Thank You..
Very helpful thank you!
thank you very much sir for this video
Very helpfull thanks
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..
String is non-synchronized methods still it's thread safe how
Because string objects are immutable
@@SauravThakur-gh2es hey sagar, could u elobrate this more...
@@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
GOD at teaching
Thank you sir! :D
Excellent
Loved it!
Nice 👌
Hi ..Can we achieve the same with ThreadLocal class?
you are awesome !!!
Helpful 👍
Thank you sir :)
if the thread coming from another class, how the thread can access the sync obj or method?
*using extends Thread*
Thanks, Please add about java.util.concurrent.locks.Lock interface .
Whenever I interview candidates, I always ask about concurrent hash map. 😁
So basically,
Thread safety == Atomicity / Caring for 'critical sections'
Can you make a video on ExecutorService in Java. Thanks.
nice video
Thanks.
Hi sir I'm beginner of java how to make a project using jsp servlet.
It's a big topic.go for Google
Pretty good
how does he go to class description just by clicking on to it
Please make video on node js
I love you bro!
nice
Thanks sir
Where can I find the best Kotlin course? I've found only shit.. lol
No link in description
I am getting same output with code 3:28Min Each time I run
Thanks for making this video
What is Java assertion
If else statement in Python
LIKE THE VIDEO
I am getting 2000 even without using synchronid keyword or AtomicInteger, how is that so?
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.
I am also getting 2000 always without sync
1:15
Hi sir
First view
Bye Bye......Sir
first
Fifth