46 | Thread Synchronization | 'synchronized' Keyword
Hello Everyone, In this video, we will discuss Thread Synchronization. In JAVA, all the threads execute asynchronously by default. But executing threads asynchronously leads data in an inconsistent state. Because when more than one thread tries to access the same data at the same time, it generates an error or we will get incorrect final data. So in order to resolve this problem, we have to use Synchronization. So when we use synchronization, at a time it permits only one thread to use a data, and after it completes it's execution other thread can use it. So we can maintain the consistency of data using Thread Synchronization. Source Code: https://bit.ly/3gt83lm NOTE: New video at 12:00 pm IST every day. So, Stay Tuned for more. Check us out for more updates: Instagram - https://bit.ly/2WJioSw Facebook - https://bit.ly/2VckgCq Join our Whatsapp Group for regular updates and doubt solving. Whatsapp Group - https://bit.ly/2xDhcpP If you are having any suggestions for us to make your learning a better experience, write to us in the COMMENT section. Don't forget to LIKE, SHARE & SUBSCRIBE Thank You for watching!! #JAVA #javaprogramming #javatutorials #JavaSE #SynchronizationinJAVA #SynchronisationinJAVA #synchronizedkeyword #threadsynchronization
Download
0 formatsNo download links available.