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
How do you compare characters in java?
What is treeset and treemap in java?
Is arraylist ordered in java?
Can you instantiate the math class in Java?
Is java util list serializable?
Is java a compiler?
Can java program run without jre?
Are arrays passed by reference in java?
Does java have extension methods?
How do you square a number?
When can we say that threads are not lightweight process in java?
Can we serialize arraylist in java?
What are the wrapped, classes?
Why inputstreamreader is used in java?
What are the advantages of java inner classes?