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 |
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
What are the super most classes for all the streams?
How does hashmap work in java ?
what is difference between interface and abstract class..?
How can I become a good programmer?
Explain importance of inheritance in java?
How to access a method that it declared as protected?
What is the do while loop syntax?
what is the use/perpose of having a method antive?
What is the difference between jfc & wfc?
What are the features in java?
Why you should not use singleton?