Why do you need Lock in Visual Basic?



Why do you need Lock in Visual Basic?..

Answer / Shashank Saurabh

You need locks in Visual Basic to prevent multiple threads from accessing the same resource simultaneously, which can lead to inconsistent data or unexpected behavior. Locks help ensure that only one thread can access a shared resource at a time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB.NET Interview Questions

When do you use virutal keyword?

1 Answers  


What is the advantage of using system.text.stringbuilder over system.string?

1 Answers  


Explain the difference between value and reference types?

1 Answers  


what is intermediate language?

1 Answers  


What is the difference between import system.data.sqlclient and system.data.oledb?

1 Answers  


What keyword is used to accept a variable number of parameter in a method?

1 Answers  


What is the role of new keyword?

1 Answers  


What is the strong name in .net assembly?

1 Answers  


What is the relation between Garbage collector and finalize and destructor?

2 Answers   Kanbay,


What’s the difference between private and shared assembly?

1 Answers  


How can we store decimal data in .net?

1 Answers  


what is delegates

2 Answers  


Categories