.Net Framework Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 3387 Page Views: 

What is difference between Monitor.Enter and Monitor.TryEnter functions?



Posted By: Avi Date: 3 July 2010 01:52:22 PM
 Answer:

Monitor.Enter waits for the lock until it does not get it, while Monitor.TryEnter will request for lock and it return true if get the lock and return false if does not get it and process further statements.


Posted By: eTechPlanet


Date: 3 July 2010 01:52:22 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image lkKZZE
Related Questions
.Net Framework : What is the difference between integer.Parse and integer.TryParse?

What is the difference between integer.Parse and integer.TryParse?

integer.Parse will throw exception if the string provided couldn’t be parsed. TryParse will return f....
Category: .Net Framework Date: 10/13/2010 4:38:48 PM
.Net Framework : What is XAML and where it’s used?

What is XAML and where it’s used?

XAML is declarative markup language. XAML simplifies creating user interface for .NET framework appl....
Category: .Net Framework Date: 10/13/2010 3:46:49 PM
.Net Framework : What is DLR?

What is DLR?

DLR is dynamic language runtime. It’s environment that adds a set of services for dynamic languages ....
Category: .Net Framework Date: 10/13/2010 2:01:48 PM
.Net Framework : What is WCF?

What is WCF?

WCF – Windows Communication Foundation is part of .NET framework that provides unified programming m....
Category: .Net Framework Date: 10/13/2010 1:52:48 PM
.Net Framework : What is WF?

What is WF?

Windows Workflow Foundation provides a programming model, in-process workflow engine and rehostable ....
Category: .Net Framework Date: 10/13/2010 1:52:48 PM