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 find the absolute value?
What is a pointer and does java support pointers?
What isan abstract class and when do you use it?
different types of threads?
Does constructor be static?
How does java pattern compile work?
Can we declare the static variables and methods in an abstract class?
What is Recursion Function?
What is meant by final class?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
What is the difference between && and & in java?
How do you define a parameter?