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

Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

2053


How viewstate is being formed and how it is stored on client in .net?

1067


What are the advantages of .net?

1063


Explain what does managed mean in the .net context?

1043


What is the single responsibility principle?

1085


Tell us the difference between managed and unmanaged code?

1074


What is difference between system.string and system.stringbuilder classes?

1255


What is delegation in .net?

1153


Conceptually, what is the difference between early-binding and late-binding?

1147


Explain about .Net products?

1182


What is different between webusercontrol and in webcustomcontrol?

1041


What is the use of system.diagnostics.process class in .net?

1084


What is the difference between a debug and release build?

1378


What is equivalent for regsvr32 exe in .net ?

1223


How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?

1041