Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is mean by synchronization?

Answer Posted / p.nanda kishore

Synchronization is a process of accessing a shared resource in a multithreaded environment by one thread at a time.

Generally in Multithreaded applications all the threads start execution at a time(i.e doing multiple task at a time) . In this situation we need a piece of code to used by one thread at a time then we need to use Synchronization.

When a thread access a Synchronized code it establishes lock with that code and all the other threads will be there in waiting state. The Lock will be released once the thread as finished it task and other thread waiting will acquire the lock.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a control variable example?

1020


What do you mean by inner class in java?

1086


What is int argc char * argv?

1171


Write a code to create a trigger to call a stored procedure

979


Why super is first line in java?

1057


Explain serialization and deserialization in java?

1008


How to make a non daemon thread as daemon?

1059


Is java ee a framework?

989


What is the implementation of destroy method in java. Is it native or java code?

966


When the constructor of a class is invoked?

1034


Why java is considered dynamic?

1177


How many ways can you break a singleton class in java?

984


What are the two main uses of volatile in Java?

1062


Is a boolean 1 bit?

1076


What happens if we override private method?

971