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
Can an interface have a constructor?
What is the char data type?
How variables are stored in memory?
How do you make a thread in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is a module function?
Why do we create threads in java?
Is null keyword in java?
Which class cannot be a subclass in java?
What are the two types of java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Explain working of call by reference function invoking.
What is package private scope in java?
Why main function is static?
What is a literal coding?