Answer Posted / joby cheriyan
Multi threading is one method for using the maximum
resource allocated for an application by the OS.
For example try a VB6 code.
Add these Controls to a form List box and command button.
Private Sub Command1_Click()
For i = 1 To 100000
List1.AddItem i
Next i
End Sub
This code will hangs up your form.
Think that you have three list box and three command button
for adding into three list boxes same time. U won’t be even
able to click the button until one task completes. If you
try with DOEVENTS function also not a proper solution for
this problem. Now you will try to solve this issue with
multithread. In VB6 you need API for creating threads.
Actually VB6 has lot of crashes when we use multithread.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Is it possible to change menu runtime using API? If yes Specify the function names?
How would you add elements and pictures to listitems in listview control?
How would you run your ActiveX Document Dll?
What is ado data control in vb?
How do I make my applications screen-resolution independent?
Difference between Dynaset and Snapshot?
What is the use of ActiveX Documents?
What language does visual basic use?
State about the different types of visual basic data?
How do I use GetPrivateProfileString to read from INI files?
Through which protocol OLEDB components are interfaced?
Explain the types of Views in Listview Control.
How would you attach pictures in column headers of List View Control?
What is the use of command Object?What are the various types of variables?
what are the Types of Resultsets?