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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a managed code executed?

1328


What is the lapsed listener problem?

1139


What are .net functions?

911


When we use windows api in .net is it managed or unmanaged code?

1027


How do we access crystal reports in .net?

1055


How to load a user control dynamically in runtime?

1005


Can I write il programs directly?

1018


Explain webfarm vs webgardens in .net?

1030


Which dll is required to translate xml to sql in internet information server (iis)?

953


What tools is used to develop .NET applications?

1025


Explain memory-mapped files.

1029


Do you know the difference between the stack and the heap?

950


Using activex control in .net?

947


Explain when should you use .net web forms over asp.net mvc?

934


What is strong-typing versus weak-typing? Which is preferred?

1000