C # Introduction to multithreading-from Microsoft Knowledge Base-Experience

Source: Internet
Author: User
I would like to reference the http://support.microsoft.com/default.aspx in the Microsoft Knowledge Base? SCID = KB; ZH-CN; 815804 (how to: create a thread using Visual C #. net ). Article I am afraid there is no technical content here, but I still feel a bit touched by this article.

Let's talk about thread first, itself:

1. Add a namespace:Using system. Threading;
2. Add rowCodeTo a new thread:Thread mythread = new thread (New threadstart (This. threadtask));(Threadtask is the name of a method written by the developer in the class, and the newly generated thread will run this method .)Mythread. Start ();OK. (You can set the isbackground property of the thread to specify whether it is a background thread. However, I do not know the difference between the background and the non-background -_-)

This article is hard to understand, or can be said to be well understood, but we can see the importance of the document from these simple code. There are thousands of documents in the knowledge base, most of which are translated from English, so there are some translation problems. In this article, the "wait for input. "These words are not fully translated (it seems a bit picky _ ^), although this does not affect reading, but for the absolute newbie, it may still be confusing (whether you think too much -_-).

PS: Windows Forms programming in C # Reading is temporarily interrupted, because ADO. NET is not available for the time being, and the tutor's project is also very busy. For the time being, he started to read OOA/OOP documents.

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.