Application Object

What methods must be used with the application object to ensure that only one process access a varaible at a time?

Questions by surendra_sahu786   answers by surendra_sahu786

Showing Answers 1 - 3 of 3 Answers

Anandbprem

  • Oct 6th, 2008
 

The HttpApplicationState class provides two methods, Lock and Unlock, that allow only one thread at a time to access application-state variables.

Calling Lock on the Application object causes ASP.NET to block attempts by code running on other worker threads to access anything in application state. These threads are unblocked only when the thread that called Lock calls the corresponding Unlock method on the Application object.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions