Network Programming, windows Network Programming

Source: Internet
Author: User

Network Programming, windows Network Programming

 

So in order not to impede the running of the main thread, is it better to use the GCD thread for network download processing? The answer is no. Asynchronous APIs are strongly recommended for network programming.

 

Network Programming can assert that "threads are the Devil ". If threads are used in network programming, a large number of threads may be used, which may cause many problems. For example, every connection uses a thread, and the thread stack memory will soon be used up. Because the Cocoa framework provides APIs for Asynchronous Network Communication, threads cannot be used in network programming. Be sure to use the API for Asynchronous Network Communication.

 

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.