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 |
Is it possible to override private or static method in java?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
How many bits is a double?
diff between abstract methods and interfaces with programing (code) example?
What is object of class in java?
What is the method overriding?
How to overcome the exception object reference not set to an instance of object?
Write a program to reverse array in place?
What is core java used for?
Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Explain with your own example..?
Is 'sizeof' a keyword?
C and C++ has constructors and distructors, why does Java does not have distructors?