Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is mean by thread lock?

Answers were Sorted based on User's Feedback



what is mean by thread lock?..

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

what is mean by thread lock?..

Answer / ravi ranjan

ANSWER- Means particular object can access resources

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

If a variable is declared as private, where may the variable be accessed?

0 Answers  


What do you mean by Hash Map and Hash Table?

0 Answers   Atos Origin,


Is there a sort function in java?

0 Answers  


In which JDK version event-delegation model is introduced?

1 Answers  


How to sort array in descending order in java?

0 Answers  


i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)

0 Answers  


How do you sort a list in java?

0 Answers  


Explain about wait() method?

0 Answers  


What does @param args mean in java?

0 Answers  


What is jvm? How its run?

0 Answers  


What does you mean in math?

0 Answers  


How variables are stored in memory?

0 Answers  


Categories