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

Differentiate between managed and unmanaged code?

0 Answers  


What is common language specification (cls)?

0 Answers  


C++ & C# differences ?

1 Answers  


what is event inheritance and event delegation?

1 Answers  


Please explain the difference between constants and read-only variables?

0 Answers  


How server form post-back works?

0 Answers  


Do you know what is the difference between an abstract class and an interface?

0 Answers  


where are connection strings stored?

1 Answers   Manhattan,


How to customize the trace output?

0 Answers  


Explain boxing and unboxing in .net.

0 Answers  


What is an assembly? What are the different types of assemblies?

0 Answers  


Explain acid properties?

1 Answers  


Categories