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 |
Explain an algorithm to find depth of a binary tree.
0 Answers Akamai Technologies,
What is a local, member and a class variable?
What is the difference between the paint() and repaint() methods?
Is singleton class immutable?
What is the byte range?
how to call One constructor from another;
What are the kinds of polymorphism?
What is an example of a conditional statement?
Which keyword specify that a variable is effectively final ?
What is the use of an interface?
Can we write multiple catch blocks under single try block?
What happens if an exception is not handled in a program?