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 |
If a variable is declared as private, where may the variable be accessed?
What do you mean by Hash Map and Hash Table?
Is there a sort function in java?
In which JDK version event-delegation model is introduced?
How to sort array in descending order in java?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
How do you sort a list in java?
Explain about wait() method?
What does @param args mean in java?
What is jvm? How its run?
What does you mean in math?
How variables are stored in memory?