what is mean by thread lock?
Answers were Sorted based on User's Feedback
Answer / maninder kaur
thread locking is achieve by synchronized keyword.
for eg...
public synchronized void disp()
{
}
or
public void disp()
{
synchronized(this)
{
}
}
it makes a lock on disp method until we comes to the end of the block.
so that no other thread can modify it.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / ravi ranjan
ANSWER- Means particular object can access resources
Is This Answer Correct ? | 1 Yes | 0 No |
Can you instantiate the math class in Java?
What is subsequence of a string?
Why does my function print none?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great
What are recursive functions?
Where the CardLayout is used?
What is the argument type of main() method?
what is diff bet iterator and enumeration?
What is the primitive type byte?
What are decalarations?
Why are arrays useful in java?
What is JFC?