adspace


Why do you need Lock in Visual Basic?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between datatable and dataset?

1418


How to retrieve images in sql server database through vb.net?

1041


How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?

1104


What is the use of assembly?

1079


What are the features of c# which are not present in vb.net?

1183


How to store images in sql server database through vb.net?

1022


Explain the difference between system.string and system.stringbuilder classes?

1079


Explain an assembly?

1055


Explain how can we remove handlers at run time?

1074


How to send xml file on server using http protocol?

1073


What is early binding?

1014


What is option strict?

1212