Ask Sawal : Question Answer Forum

What is synchronization in java?


Asked By: Adhira Maharaj



Report
Share on Facebook
Tweet on Twitter
Share on Linkedin
Share on Reddit
Share on Whatsapp


1 Answer(s) Available

Archivist Erp Business Stakeholders Sap Vasai-Virar India


So there is a need to synchronize the action of multiple threads and make sure that only one thread can access the resource at a given point in time. Synchronization in java is the capability to control the access of multiple threads to any shared resource. Java provides a way of creating threads and synchronizing their task by using synchronized blocks. Synchronized blocks in Java are marked with the Synchronized keyword.

Report
6


Related Questions

Login


Lost Password!

Create Account