The difference between Python select poll Epoll

Source: Internet
Author: User

Select

Advantage: As the earliest asynchronous IO processing module, he can be used on Linux and on Windows, cross-platform compatibility is good, and poll and Epoll are not used in Windows system environment.

Cons: The mechanism of select determines whether a new connection is established by checking the ports in all input for Each loop. His overhead will increase linearly with the number of ports being detected. And his maximum number of detections is 1024 (can be modified).

Poll: His mechanism is the same as SELECT, so the more ports that are detected, the greater the overhead and the inability to use it under Windows. But he didn't have the maximum limit for detection.

Epoll: Uses a new mechanism to detect only active links, reducing overhead values

The difference between Python select poll Epoll

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.