Core Java with OCJP/SCJP: Multi Threading Part-9 || synchronized block

  Рет қаралды 259,622

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 110
@prakherjindal5440
@prakherjindal5440 Жыл бұрын
synchronized block concept - 04:00-08:20 (notes - 13:30-15:30) declaration of synchronized block - 21:00(check content of board) example of synchronized block - 36:35(check content of board), 41:30-47:00 synchronized block concept - 49:00-49:45, race condition - 55:19-56:25 lock concept - 01:05:15-01:07:30
@srinivasseenu9642
@srinivasseenu9642 5 ай бұрын
The way you tell real life stories and associate it with Java concepts is amazing. This making ease to understand the java concepts without ambiguity. 😊👍 These videos will never get old till Java is alive.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 ай бұрын
Hello Seenu. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@ankitamall3132
@ankitamall3132 2 жыл бұрын
despite working in industry for so long,finally my thread concept cleared thank u durga sir❤️
@ronaknayak7851
@ronaknayak7851 8 жыл бұрын
Durga sir has made my life easy by uploading such a crucial videos..Thanks, DurgaSoft. Kindly, Upload rest videos on multi-threading front.
@vamshikrishnaganapuram6381
@vamshikrishnaganapuram6381 2 жыл бұрын
Thanks!
@santhoshk1448
@santhoshk1448 7 жыл бұрын
durga sir=god of java
@kirtirajput4569
@kirtirajput4569 2 жыл бұрын
thanku so much sir for these valuable videos on multithreading....it is doing a great help.....
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Kirti. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@kpgUser
@kpgUser 3 жыл бұрын
unforgettable ....life is synchronized now, true master.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Friend. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@makarandgaikwad7406
@makarandgaikwad7406 9 жыл бұрын
Durga Sir, Can you provide reaming video on multithreading concept as well. Your style of explanation and your understanding towards concept is really fabulous.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
+Makarand Gaikwad Hello, We are very Happy to say Now you can access All DURGA Sir's Core Java with OCJP/SCJP Video Sessions. To get Maximum Benefit from these video sessions, compulsory you have to write notes also. Sir will dictate each and every point clearly. Demo Sessions on KZbin: 1. Language Fundamentals(16 Videos) kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2. Operators &Assignments(7 Videos) kzbin.info/www/bejne/Z3uqgIOeft6bd68 3. Flow Control(6 Videos) kzbin.info/www/bejne/jmfVhGyseZ5gp68 4. Exception Handling (10 Videos) kzbin.info/aero/PLd3UqWTnYXOnSkaum39zWYI6bPb3i7liz Please give your valuable feedback and it is very important and helpful for us. Note:-If you are interested for full version of videos please revert back for more information. Fee : 6000/- Duration: 6-months DURGASOFT Online Training Team, Mobile : +91-7207 21 24 28 +91-8885 25 26 27 Mail ID : durgasoftonline@gmail.com , durgasoftonlinetraining@gmail.com
@shubham7891
@shubham7891 2 жыл бұрын
Thanks a lot for such FAQ's , really summarised the whole concept and in nutshell, provided the clarity of concepts very well👌👌👌
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Shubham. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@computing_T
@computing_T 5 жыл бұрын
i don't know how to define you sir live long
@sandhya6356
@sandhya6356 4 жыл бұрын
It was very helpful for me..! Thank you sir 😊😊
@samsherbudhaair969
@samsherbudhaair969 7 жыл бұрын
Finally new shirt. Love from Nepal
@TheRebelMe
@TheRebelMe 5 жыл бұрын
Hi Sir, Firstly I want to thank you for your fabolous teaching approach. In an interview one question is asked about multithreading Question is Suppose we have three threads t1,t2 and t3. Wap so that t3 execute after completion of t1,t2.But t1 and t2 should execute simultaneously.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Renu. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@adityasinghania2504
@adityasinghania2504 4 жыл бұрын
call t1.join();t2.join() as first line in t3's run method.
@sanpanchapakesan7654
@sanpanchapakesan7654 5 жыл бұрын
Durga Sir Good Afternoon. Your comparative study of many concepts or methods with purpose is too good. When synchronized is taught, I think there can be a COMPARATIVE STUDY OF different synchronized styles, at method, at block, at class, and object can also be discussed... Thank you...
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello San. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@virendraaligave423
@virendraaligave423 Жыл бұрын
thank you sir your teaching is awesome thank you so much sir please sir you also start for the machine learning and DSA in java courses . we are waiting.❤🙏💐
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Virendra. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@mak8823
@mak8823 8 жыл бұрын
why it is allowed to use class level lock on synchronized block in non static methods? isn't class level lock is for only static methods?
@ranveervaghela7030
@ranveervaghela7030 6 ай бұрын
Completed watching on 30-06-2024 at 10.08 PM :)
@राजनगोंगल
@राजनगोंगल Жыл бұрын
👍👍👍👍👍👍
@palashchauhan9927
@palashchauhan9927 5 ай бұрын
👌
@GopalSharmaCS
@GopalSharmaCS 9 жыл бұрын
Durga Sir, I love your Video lectures specially this multi-Threading videos. with so ease you discuss the topic is outstanding. But in these series where are the videos from part 10-13. I can see only till 9 and lecture no 14. Please provide them also Cheers,
@CHIRANJEEVIM77
@CHIRANJEEVIM77 6 жыл бұрын
excellent lecture
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Chiranjeevi. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rakeshsahoo2509
@rakeshsahoo2509 2 жыл бұрын
god bless you sir
@shahzaiblashari7250
@shahzaiblashari7250 6 жыл бұрын
just superb love from pakistan
@thinksix1925
@thinksix1925 4 жыл бұрын
Thanks for teaching sir 🙏
@Dyslexic_Neuron
@Dyslexic_Neuron 6 жыл бұрын
great analogies sir ! respect
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Kushagra. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@debjyotibhattacharjee685
@debjyotibhattacharjee685 6 жыл бұрын
Very nice sir ... u r great
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Debjyoti. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@enjoyeating629
@enjoyeating629 5 жыл бұрын
Best example for synchronized block is tolgate .in tolagate one Vehicle can check.until tolagate number vehcles can overtake each other ,after tolgate also. In tolgate vehcles have to move one by one
@abhishekbhayal3129
@abhishekbhayal3129 2 жыл бұрын
20:03 i could not understood inside synchronized block .class level lock Sir please clear this doubt
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Abhishek. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@saddamahmad2310
@saddamahmad2310 6 жыл бұрын
Thank You so much sir for giving these videos
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Saddam Ahmad. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@rizwanshahid1447
@rizwanshahid1447 7 жыл бұрын
Thanks so much, Durga Sir.
@hacking1007
@hacking1007 7 жыл бұрын
sir your explation is asomee i i like it sir please more upload video of graphics user interface in java please sir
@rohithguptathodupunuri7303
@rohithguptathodupunuri7303 3 жыл бұрын
How many watching with 1.25x speed
@rups_kitchen_01
@rups_kitchen_01 10 ай бұрын
1.5x
@nareshkatukojwala3692
@nareshkatukojwala3692 Жыл бұрын
Requesting you to please let me know the best book for java learning complete program.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Naresh. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@vivekbudge9706
@vivekbudge9706 4 жыл бұрын
Thank you so much :)
@RoshanAlte
@RoshanAlte 3 ай бұрын
1:01:05 In previous lecture you told normal methods can be accessed by n no. of threads but sync method only accessed by one thread. But you told normal method are not accessed by the another thread.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 ай бұрын
Hello Roshan. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@priyadt1
@priyadt1 6 жыл бұрын
hello sir, I have one doubt, can we add synchronized(this) inside run() in thread class?.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Priyad. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@mahboobali5886
@mahboobali5886 4 жыл бұрын
Hello Sir, You are great and Your way of teaching is very good. In synchronized block first program only display "Good Morning" twenty times, name is not display (like Dhoni and Yuvraj) can u tell me why?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Ali. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ywrtech705
@ywrtech705 5 жыл бұрын
Hi Sir, At 1:08:32, I think synchronizing on a local instance will not work here coz every thread object will have own copy of that method. Please correct me if i am wrong. And thanks alot for teaching us.😊
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Ywr Tech. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ultimatewarriorfrieza275
@ultimatewarriorfrieza275 4 жыл бұрын
In case of multiple objects, why is there an irregular output? Is it because we are working on only one System.out object?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@safdarakrami3764
@safdarakrami3764 9 жыл бұрын
It would be great if remaining videos are also available for learning.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 9 жыл бұрын
Hello, We are very Happy to say Now you can access All DURGA Sir's Core Java with OCJP/SCJP Video Sessions(200 Videos,21 Chapters,200 hours ). To get Maximum Benefit from these video sessions, compulsory you have to write notes also. Sir will dictate each and every point clearly. Demo Sessions on KZbin: 1.LanguageFundamentals(16Videos) kzbin.info/www/bejne/m4W7lWtvqZ2hnas 2.Operators&Assignments(7Videos) kzbin.info/www/bejne/Z3uqgIOeft6bd68 3.FlowControl(6Videos) kzbin.info/www/bejne/jmfVhGyseZ6kgw 4.ExceptionHandling(10Videos) kzbin.info/aero/PLd3UqWTnYXOnSkaum39zWYI6bPb3i7liz Please give your valuable feedback and it is very important and helpful for us. Note:-If you are interested for full version of videos please revert back for more information. Fee : 6000/- Duration: 6-months DURGASOFT Online Training Team, Mobile : +91-8885 25 26 27, +91-7207 21 24 28 Mail ID : durgasoftonline@gmail.com , durgasoftonlinetraining@gmail.com
@bhuneshwarsingh630
@bhuneshwarsingh630 9 жыл бұрын
Sir You are Really Great can you please upload Some Missing videos so we can get better Understanding on that Wait() and InterThread Communication is Missing Sir videos from part 10-13 are Missing Please Upload, We love U sir Thanks for Uploading Videos
@coding-with-namrata
@coding-with-namrata 8 жыл бұрын
Thanks a lot, sir
@safdarakrami3764
@safdarakrami3764 9 жыл бұрын
Dear Sir, Is there any tutorial for learning struts 2 with videos.
@jigneshkhunt1927
@jigneshkhunt1927 9 жыл бұрын
wow
@srikanthr5935
@srikanthr5935 8 жыл бұрын
Hi Durga Sir, I could not find 10,11,12,13 sessions of multi threading concept pf your OCJP tutorial can you please upload it. Thanks in Advance.
@prasadpalla1483
@prasadpalla1483 6 жыл бұрын
I Have a question on the last topic ?? Is a thread can acquire multiple locks simultaneously ?? For this, you have taken one example... You have already used a synchronized keyword in m1() method...But again you used Synchronized (y) and Synchronized (z) ... What is the necessity of using so many times... If the main method is having the Synchronized method then it is applicable to all child methods, right ? can you please explain about it ??
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Prasad. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@sanpanchapakesan7654
@sanpanchapakesan7654 5 жыл бұрын
Mr Prasad, Yes when method is sync its applicable to the entire code in it,...... but does the code acquire the lock of objects of Y and Z also? No. The pseudo sample shown by Durga Sir is to possibly show yes, an object can acquire more than one lock and it wont show any error....If a thread acquire locks of many objects....it may possibly lead to cascading effects (like Oracle-PLSQL triggers)... and JVM may blink its eys...
@DeepakKumar-um5kj
@DeepakKumar-um5kj 2 жыл бұрын
Need to change the example. and explain from different example. All covered in a single example.
@renukabarvhan5709
@renukabarvhan5709 5 жыл бұрын
Sir i have an consern about the example when we create two object of display class we don't need not to surround the for loop inside the synchronized block So we also get regular object. So why we need to surrounded for loop inside synchronized block Plz must reply sir thankyou.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Renuka. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@vaibhavvyavahare
@vaibhavvyavahare 5 жыл бұрын
Sir please upload Spring tutulorial.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Vaibhav. For Spring videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@PANKAJSINGH-lv7iu
@PANKAJSINGH-lv7iu 7 жыл бұрын
Sir could you please tutorial for design patterns in java
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 7 жыл бұрын
Hi Pankaj. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
@lafhangaladka2119
@lafhangaladka2119 5 жыл бұрын
If method is declared as synchronized then what is the need of synchronized block inside it
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Lafhanga Ladka. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@sanasyogesh1
@sanasyogesh1 4 жыл бұрын
Cause more and more threads can execute nonsynchronize part and your performance would be increased. It is recommended keep minimum part in synchronize block or method so response time or waiting time can be reduced.
@charurathi927
@charurathi927 8 жыл бұрын
sir plz upload ur videos in advance java sir
@prabhudeepsingh4236
@prabhudeepsingh4236 7 жыл бұрын
To get all the programs of Multi Threading give a star to the following repository: github.com/PrabhudeepSingh/Java-07-MultiThreading Follow github.com/PrabhudeepSingh for more such code.
@prathapkoushic4005
@prathapkoushic4005 7 жыл бұрын
sir teaching is super but too much lag
@ushahande5851
@ushahande5851 8 жыл бұрын
Please add videos for part 9 to part 13. They are missing
@damodharareddy417
@damodharareddy417 8 жыл бұрын
+usha hande hi mam u got the multithreading videos from 10 to 13 plz tell me dont ignore me
@zoranristov7349
@zoranristov7349 7 жыл бұрын
Why would you use synchronized methods/blocks inside synchronized methods? If one method is synchronized, wouldn't everything in it be synchronized as well?
@vishalpanwar9550
@vishalpanwar9550 6 жыл бұрын
Here is a real world scenario which will help you understand.Suppose someone got fracture in his fingers/finger.Which is the better way to handle it ?Put a plaster on his complete hand or just put a plaster on his fingers/finger. In the same way if a method contains 100 lines of code out of which only few line of code is critical ,then its better to go for synchronized block rather than synchronized method.
@ankitsharma8221
@ankitsharma8221 6 жыл бұрын
Yes, everything inside a synchronized block is synchronized but what he said was, for a Thread to attain different locks we can define several synchronized blocks inside a synchronized method.
@zoranristov7349
@zoranristov7349 6 жыл бұрын
01:05:15 there is a synchronized method m1, and then 2 synchronized blocks of code in it. If he wrote it just for the purpose of explaining that a thread can acquire multiple locks at the same time, it's ok, altho it's kind of a bad example if you ask me cause I don't see why you would use synchronized code inside synchronized code, because if a thread has the lock of the m1 method, no other thread can get the lock of m1, let alone get locks of the blocks of code inside that method. You get what I mean?
@vishalpanwar9550
@vishalpanwar9550 6 жыл бұрын
Let assume m1() has 1000 lines of code ,out of which 999 code performing the read operation(assuming) and one line is performing the write operation on a shared resource. Then what will be your approach ,to synchronize the whole method or just make the synchronized block and put that one line operation in it?
@ankitsharma8221
@ankitsharma8221 6 жыл бұрын
you are not getting the question @vishalpanwar
@shruthisjarali
@shruthisjarali 8 жыл бұрын
"Y and Z" class is not there why r u creating its instance " y and z" in 1:07:10.....plz explain
@PraveenRanjan123
@PraveenRanjan123 8 жыл бұрын
It is just an example... Sir is trying to explain whether a Thread can acquire multiple locks or not and the answer is Yes. So suppose there is already class Y and Z.
@shruthisjarali
@shruthisjarali 8 жыл бұрын
oh k...tysm
@Hari-fd4yv
@Hari-fd4yv 28 күн бұрын
This is december 2024 this viedos age is 9 years still not get old no compitison for MR.Durga Sir . no one will suppose to come, if any one one have guts , see all viedos and detailing , subject only will give LEFT AND RIGHT
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 28 күн бұрын
Hello Hari. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
@manojkumarjena7563
@manojkumarjena7563 6 жыл бұрын
Hello sir , I saw this video completely and I have a question that is: Can a constructor can be synchronized or not and if not why? please make a video on this and please notify Thank you..
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Manoj. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@manojkumarjena7563
@manojkumarjena7563 6 жыл бұрын
Ok sir. Thank you.
@manojkumarjena7563
@manojkumarjena7563 6 жыл бұрын
Sir, I mailed on this email but didn't get any reply. please sir help me on this topic. thank you.
@COMPUTERWallahCoding
@COMPUTERWallahCoding Жыл бұрын
There are no bomb blasts now a days, as govt head is a true Patriot person.
Core Java with OCJP/SCJP: Multi Threading Part-10 || Inter Thread Communication Part-1
1:18:26
Core Java with OCJP/SCJP: Multi Threading Part-7 || synchronization part-1
1:35:15
Durga Software Solutions
Рет қаралды 406 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Core Java with OCJP/SCJP: Multi Threading Part-11 || Inter Thread Communication Part-2
1:24:46
Core Java With OCJP/SCJP: Innerclass  Part- 1||Introduction
1:21:59
Durga Software Solutions
Рет қаралды 187 М.
Object Oriented Programming (OOPs) Concepts In Java || by Durga sir
10:33:31
Durga Software Solutions
Рет қаралды 1,5 МЛН
Los Angeles Fire -- Vocabulary You Should Know - from the news
13:12
AccurateEnglish
Рет қаралды 184 М.
Core Java with OCJP/SCJP: Multi Threading Part-2 || The ways of defining a Thread Part-1
1:44:56
Core Java with OCJP/SCJP: Multi Threading Part-8 || synchronization part-2
53:43
Durga Software Solutions
Рет қаралды 261 М.