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 |
How do you use equal in java?
When throw keyword is used?
What is intern method in java?
What are the 3 types of loops in java?
What is final, finally, finalize?
Is treeset sorted in java?
what is thread? What are the high-level thread states? : Java thread
What is difference between throw and throws ?
what is j2se
What is run time allocation?
What are the benefits of operations?
Tell us something about different types of casting?