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 / ravikiran

The lock will be released & allocation depends on the scheduler

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data types in oop?

1078


What's the base class of all exception classes?

1116


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

1020


Can static method access instance variables ?

1183


What is slash r?

1059


Which package has light weight components?

1045


How to display names of all components in a Container?

2991


Explain yield() method in thread class ?

1116


What’s the difference between applets and standalone program?

1107


How many bits are in a sentence?

1262


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1028


How do you add an element to an arraylist in java?

995


What is thread synchronization in java?

952


what are synchronized methods and synchronized statements? : Java thread

1050


What are recursive functions?

1105