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 |
Which class has no duplicate elements?
Name container classes in java programming?
whats the difference between == and .equal ?
What is treeset in java collection?
Explain about anonymous inner classes ?
How do you ensure that n threads can access n resources without deadlock?
What is the difference between conversation & casting?
Can we use catch statement for checked exceptions?
what are the difference between Java and .Net?
What is the difference between Stream Reader and Stream Writer?
What is array in java?
What is the method to declare member of a class static?