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 object lock?



what is object lock?..

Answer / divikiran

The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. This statement takes the following form:

Object thisLock = new Object();
lock (thisLock)
{
// Critical code section
}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What's singleton activation mode in .net?

0 Answers  


What are the new features in .net core?

0 Answers  


What is Garbage Collection in .Net? Garbage collection process?

3 Answers  


What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?

0 Answers  


What is connected and diconnected database ?

0 Answers  


What is the difference between override and overload in a method?

0 Answers  


What are the different types of memory in .net?

0 Answers  


What is managed code in .NET?

0 Answers  


Please explain what is the difference between a class and an object?

0 Answers  


What is file extension of Webservices in .Net?

0 Answers   Arigo Infotech,


i have 2 functions, int add(int a,int b); double add(int a,int b); does this code implement overloading? if not what will be the error?

4 Answers   Deloitte,


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

0 Answers  


Categories