Various note formats provided by. NET

Source: Internet
Author: User
. NET provides three note types:
1, System. Timers. Timer:
This Timer uses threads in the thread pool to execute tasks. Since it uses threads in the thread pool, it must synchronize threads when accessing resources used by tasks !, You can specify a thread to execute a task,

2, System. Threading. Timer:
Similar to Timer in thread 1, a thread in the thread pool is used to execute tasks, but a specified Thread cannot be used to execute tasks.


3, System. Windows. Forms. Timer:
This Timer is characteristic that the thread used to execute the task is dedicated to the job-related window. You must never use this Timer to execute tasks that take too long (for example, a few minutes). Otherwise, the interface will not respond.

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.