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 |
Describe the process as to how substring() methodology mechanisms in java.
What is hashing in java?
What is difference between hashset and hashmap?
What are the types of sockets in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
What is a buffer in java?
What is immutable in java?
What is main difference between variable and constant?
where the static methods will live ,on stack ? can you explain brefly
What is the root class for all Java classes?
What is unmodifiable list in java?