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
What is basic syntax?
What is the flag in java?
What is the static variable?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What are heterogeneous objects?
What are the problems faced by java programmers who don't use layout managers?
What is double checked locking in singleton?
Explain the term virtual machine?
What is math in java?
Difference between == and .equals() ?
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?
What is defined as false sharing in the context of multithreading?
How many types of design patterns are there?
What is methodological framework?
Which is better stringbuffer or stringbuilder?