---
title: "Discussion on \"使用poll()代替select()处理多客户连接的TCP服务器实例\" | Hashnode"
description: "Discussion on \"使用poll()代替select()处理多客户连接的TCP服务器实例\". 在网络编程中，使用 select() 处理多客户端的连接是非常常用的方法，select() 是一个非常古老的方法，在大量连接下会显得效率不高，而且其对描述符的数值还有一些限制，Linux内核从 2.1.13 版以后提供了 poll() 替代 select()，本文介绍 poll() 在网络编程中的使用方法，并着重介绍 poll() 在编程行与 select() 的区别，旨在帮助熟悉 select() 编程的程序员可以很容易地使用 poll() 编程，本文提供了一个具体的实例，并附有完整的源代码，..."
url: "https://hashnode.com/posts/180021-using-poll-instead-of-select/6711e4cb167ed7c74cec951c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [使用poll()代替select()处理多客户连接的TCP服务器实例](https://whowin.cn/180021-using-poll-instead-of-select?utm_source=hashnode&utm_medium=feed)

在网络编程中，使用 select() 处理多客户端的连接是非常常用的方法，select() 是一个非常古老的方法，在大量连接下会显得效率不高，而且其对描述符的数值还有一些限制，Linux内核从 2.1.13 版以后提供了 poll() 替代 select()，本文介绍 poll() 在网络编程中的使用方法，并着重介绍 poll() 在编程行与 select() 的区别，旨在帮助熟悉 select() 编程的程序员可以很容易地使用 poll() 编程，本文提供了一个具体的实例，并附有完整的源代码，...

Feb 26, 2024 · 5 min read · whowin.cn  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#572r57uc57yw56il](https://hashnode.com/tag/572r57uc57yw56il)
-   [#poll](https://hashnode.com/tag/poll)
-   [#select](https://hashnode.com/tag/select)

## Written by

[whowin](https://hashnode.com/@whowin)

@whowin · Beijing, China

  
[View profile](https://hashnode.com/@whowin)

一枚有30多年经验的退休程序员，主要从事嵌入式软件开发

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
