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

Can an interface be final?

1032


What does exp mean in math?

993


Explain the selection sort algorithm and state its time complexity?

1021


What are peerless components?

1090


Is hashset ordered?

1077


Is 9 a prime number?

886


Is minecraft 1.15 out?

978


What is function and method in java?

956


What is hashmap in java?

1062


Can java cast null?

1043


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

994


What is the concept of multithreading?

991


What is the purpose of format function?

1182


How can you set the applet size?

1058


What is the purpose of using java.lang.class class?

1016