Visual Studio Next Generation: Language Enhancements

Free Threading

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

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov