I just purchased a book that seems to
talk more about synchronization issues
than thread creation so im still a little
confused about how to create a thread
in Visual Basic.
In Java all i would have to do is create a class
that implements the Runnable interface
and override the run() method.
Then create an instance of that class
within the threads constructor and call
start on the thread which in turn would call
run() on the target threads code.
Visual Basic seems to take a slightly diffrent
approach to thread creation using ThreadStart
to get a address pointer to the code which
will run as a seperate process then pass that
to a Thread object.
Is this the only way to create a seperateCode:Imports System.Threading Dim _thread as Thread Dim threadStart as ThreadStart threadStart = New ThreadStart(AddressOf Me.Start) _thread = New Thread(threadStart) _thread.Start()
process of execution? Has anyone else
tried multithreading yet? Any suggestions
or comments would be helpful.![]()




Reply With Quote