Wat is multithreading in VB?
Answers were Sorted based on User's Feedback
Answer / seshu
In easiest way...
In DOS commands can pass one after one...coz its a single
thread, once process completes second one can be perfomed...
In windows can be more than one thread, e.g: printing,
simaltaneously can work on word, and can hear songs. etc.
VB also supports multhithreading(multiple processes) can be
done.
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / cp
VB implements multithreading in COM.
When component with time consuming code executes it hangs
client for a period. Through Multithreading COM can execute
simultaniously with Client.
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / 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 |
Answer / ravi kumar noneria
What happens if we need our Process to do more than 1
thing, like execute query and write to a database at the
same time. Luckily we can split a Process to share the time
slice allocated to it. This is done by spawning new threads
in the current Process. These extra threads ares sometimes
called worker threads. These worker threads share the
processes memory space that is isolated from all other
Processes on the system.
Is This Answer Correct ? | 0 Yes | 0 No |
___,_____ and ____ container objects. ___ Property is to compress a image in image control. ___,___ and __ are difference between image and picture controls. To set the command button for ESC ___ Property has to be changed. ___,__,___ are the type of combo box? __ no of controls in form. OLE is used for _______ ___ is the control used to call a windows application. Clear property is available in ____,___ control. ___ Property is used to count no. of items in a combobox. ___ is a property to resize a label control according to your caption. ___ property is used to change to ___ value to access a identity column'in datacontrols. _____ is the property to ___,____,____ are valid for recordsource property of dat control. Timer control contains ________ no. of events. ____ property is used to lock a textbox to enter a datas. ____ is the difference between Listindex and Tab index. ____ property of menu cannot be set at run time. _____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol. ___ argument can be used to make a menuitem into bold. ___,___ arguments will be used to run a executable program in shell function ___ property used to add a menus at runtime. ___ VB constant make the menu item in centre. ___ method used to move a recordset pointer in nth position in DAG.
Explain about manipulating the recordset object
What are the different types of Dialog Box?
Difference between Linked Object and Embedded Object?
What are properties available in Clip Board?
What is the difference between Dim nCount as Integer vs Dim nCount% and when would you use each?
What is DBSqlPassThrough?
What do you mean by HTTP?
Does VB support object-oriented concepts? Explain..
What are the tools available for Debuggiu in VB?
what is the Code for DSN Less Connection?
How would you use ActiveX Dll and ActiveX Exe in your application?