Synchronization method?
Give me a detailed definition about Thread Synchronization....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaydeep PatilPosted Jul 30, 2022, 4:06 AM
Synchronized methods enable a simple strategy for preventing thread interference and memory consistency errors: if an object is visible to more than one thread, all reads or writes to that object's variables are done through synchronized methods.
Pushpendra ShuklaPosted Jul 29, 2022, 4:41 AM
Abhishek SinghalPosted Jul 29, 2022, 2:17 AM
Synchronization
Suppose we have a resource and multiple threads want to utilize this resource. So there may chance of conflict between threads because multiple threads used this resource at the same time. To overcome this problem we use the synchronization concept. Synchronization makes sure that only a single thread used this resource at a time.
Zakir AhamedPosted Aug 25, 2017, 11:22 PM