How to ensure that only one process accesses a variable at a time
Question - Which of the following object is used along with application object in order to ensure that only one process accesses a variable at a time?
Options -
Synchronize
Synchronize()
ThreadLock
Lock()
Correct Answer - Synchronize()