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 scanner in java?

994


Why do we create threads in java?

1353


Why deletion in linkedlist is fast than arraylist?

1154


What is bubble sort in java?

1107


What is gui programming?

1113


What is tcp and udp?

1074


What is methods and methodology?

1077


How many tetrahedral voids are there in bcc?

1174


What is the full name of java?

1185


What do you understand by java?

1048


What are the two ways of implementing multi-threading in java?

1582


How do singleton patterns work?

1021


Which is better ascii or unicode?

1047


How do you convert an int to a string in java?

1207


How many characters is 2 bytes?

1043