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

Explain garbage collection?

0 Answers  


Explain different types of html, web and server controls.

0 Answers  


What is an anonymous method?

0 Answers  


Explain what relationship is between a process, application domain, and application?

0 Answers  


can we use private assembly in other project in dot net.

3 Answers  


What is garbage collection in .net? Explain the garbage collection process?

0 Answers  


What's wrong with a line like this? Datetime.parse(mystring);

0 Answers  


Dynamic Fonts

0 Answers  


What does msil do?

0 Answers  


Describe the programming model of a windows service

0 Answers  


What should you do to store an object in a viewstate?

0 Answers  


Is .net is a language?

0 Answers  


Categories