Today when developers create applications in Visual Basic, the code that they write is synchronous. That means that each line of code must be executed before the next one. When developing Web applications, scalability is key. Developers need tools that enable concurrent processing.
With the inclusion of free threading, developers can spawn a thread, which can perform some long-running task, execute a complex query, or run a complex calculation while the rest of the application continues, providing asynchronous processing.
Sub CreateMyThread()
Dim b As BackGroundWork
Dim t As Thread
Set b = New BackGroundWork()
Set t = New Thread(New ThreadStart(AddressOf b.Doit))
t.Start
End Sub
Class BackGroundWork
Sub DoIt()
...
End Sub
End Class
Comments