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
What are data types in oop?
What's the base class of all exception classes?
What is the implementation of destroy method in java. Is it native or java code?
Can static method access instance variables ?
What is slash r?
Which package has light weight components?
How to display names of all components in a Container?
Explain yield() method in thread class ?
What’s the difference between applets and standalone program?
How many bits are in a sentence?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
How do you add an element to an arraylist in java?
What is thread synchronization in java?
what are synchronized methods and synchronized statements? : Java thread
What are recursive functions?