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...

Hi Friends, I am beginner in java. what i know about
synchonized keyword is,If more that one 1 thread tries to
access a particular resource we can lock the method using
synchronized keyword. Then after that how the lock is
released and how next thread access that.Please explain with
example.

Answer Posted / jitu

ok i agree with u ejp

wat abt this ??

thread invokes wait() method..

is holding remains in synchronized block or it exists.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is basic syntax?

979


What is the flag in java?

994


What is the static variable?

1056


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

934


What are heterogeneous objects?

979


What are the problems faced by java programmers who don't use layout managers?

907


What is double checked locking in singleton?

1005


Explain the term virtual machine?

986


What is math in java?

1023


Difference between == and .equals() ?

952


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

938


What is defined as false sharing in the context of multithreading?

985


How many types of design patterns are there?

1046


What is methodological framework?

978


Which is better stringbuffer or stringbuilder?

873