Free Thread (Threading)

Source: Internet
Author: User

Visual Studio.NET allows users to develop multiple, disparate multi-threaded applications. That is, when a user executes a program, it is also possible to run another task program independently of another thread, a process known as free threading. For users, the introduction of the concept of free threading makes the application more responsive to the user because the task handler is able to maintain the interface's response to the user while a thread is running, as long as the thread that responds to the user is running. Also, free threads can be useful when running large programs, because as the running task increases, users will be able to open up a few more threads to run the program.

Create and use a new thread
A user can create a new thread by declaring a variable type system.threading. It also provides an address operation and a procedure or method that a user wants to run. For example:
Dim Mythread as New System.Threading.thread (AddressOf mysub)
Users can use the "Start" method to start a thread, such as thread. Start (). Use the "Stop" method to terminate a thread.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.