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

Give an example program for Getter /read-only methods in JAVA

1 Answers  


What is a delegate, How many types of delegates?

4 Answers  


How many namespaces are in .net version 1.1?

0 Answers  


What is the difference between an abstract class and an interface?

0 Answers  


What is serialization in .NET? What are the ways to control serialization?

1 Answers  


What is the difference between a Hash Table and a Dictionary?

1 Answers  


What is .net and .net framework?

0 Answers  


How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

1 Answers  


How can you turn-on and turn-off cas?

0 Answers  


What is managed code and managed data in .net?

0 Answers  


When displaying fonts, what is the difference between pixels, points and ems?

0 Answers  


What is RunTime Polymorphism?

5 Answers   Deloitte, eClerx, Horizon, Intel, Pragna Technologies,


Categories