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 type of questions asked for barclays technologies pune please send urgent

5660


What is an object in java?

1030


Can we modify the throws clause of the superclass method while overriding it in the subclass?

1031


Explain differences between collection api and stream api?

1178


What do you understand by a Static Variable?

1209


What is :: operator in java?

968


What is array list in java?

1074


When super keyword is used?

1009


Can we make a constructor final?

1015


describe method overloading

1014


What is Major and importance difference between for and foreach loop ?

1144


Why is singleton class used?

1031


Differences between external iteration and internal iteration?

1160


Is there any difference between synchronized methods and synchronized statements?

1096


What is the difference between yield() and sleep()?

1012