Which of the following object is used along with an application object in order to ensure that only one process accesses a variable at a time?

Options
- Synchronize
- Synchronize()
- ThreadLock
- Lock()


CORRECT ANSWER : Synchronize()

Discussion Board
There must be an option like "Lock() and UnLlock()"

Lock() and UnLlock() method(s) are used with Application object to ensure only one process accesses a variable at a time.

RSK 11-26-2015 01:42 PM

c# and asp.net interview quections and answers

hi
send me dotnet interview quections and answers plz

bharathi 08-17-2015 07:23 AM

c# and asp.net interview quections and answers

hi
send me dotnet interview quections and answers plz

bharathi 08-17-2015 07:23 AM

Answer is Wrong

one process is access at one time by using lock() in asp.net.It call the System.Web.HttpApplicationState.Lock method

Abhijit Jalekar 02-3-2015 03:46 PM

Answer should be Lock()

Answer mentioned is wrong. It should be lock()

Sharad Rastogi 01-6-2015 09:19 AM

Answer should be LOCK

Synchronize keyword is from JAVA, Lock is from C# which ensure for thread safe environment.

Mohsin Khan 08-27-2014 01:34 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement