Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 21,843 times

Contents

Related Categories

Visual Studio Next Generation: Language Enhancements - Free Threading

Microsoft

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

Comments

  • Object Oriented feature in VB

    Posted by ghanshyam on 12 Nov 2002

    The Object Oriented feature like Inheritance,Polymorphism,Encapsulation in Visual Basic is really a great achievement.Offcourse making a VB program as Multithreaded and allowing STructured exception h...

  • VB History

    Posted by jamsmith on 01 Aug 2002

    I am not sure if you have your whole VB history down. I learned VB from a Version 2.0 Demo. Also, did you also know there was Visual Basic for DOS?