Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 251495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:35:57+00:00 2026-05-11T21:35:57+00:00

I am referring to the POSIX standard select and poll system C API calls.

  • 0

I am referring to the POSIX standard select and poll system C API calls.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:35:57+00:00Added an answer on May 11, 2026 at 9:35 pm

    I think that this answers your question:

    From Richard Stevens (rstevens@noao.edu):

    The basic difference is that select()’s fd_set is a bit mask and
    therefore has some fixed size. It would be possible for the kernel to
    not limit this size when the kernel is compiled, allowing the
    application to define FD_SETSIZE to whatever it wants (as the comments
    in the system header imply today) but it takes more work. 4.4BSD’s
    kernel and the Solaris library function both have this limit. But I
    see that BSD/OS 2.1 has now been coded to avoid this limit, so it’s
    doable, just a small matter of programming. 🙂 Someone should file a
    Solaris bug report on this, and see if it ever gets fixed.

    With poll(), however, the user must allocate an array of pollfd
    structures, and pass the number of entries in this array, so there’s
    no fundamental limit. As Casper notes, fewer systems have poll() than
    select, so the latter is more portable. Also, with original
    implementations (SVR3) you could not set the descriptor to -1 to tell
    the kernel to ignore an entry in the pollfd structure, which made it
    hard to remove entries from the array; SVR4 gets around this.
    Personally, I always use select() and rarely poll(), because I port my
    code to BSD environments too. Someone could write an implementation
    of poll() that uses select(), for these environments, but I’ve never
    seen one. Both select() and poll() are being standardized by POSIX
    1003.1g.

    October 2017 Update:

    The email referenced above is at least as old as 2001; the poll() command is now (2017) supported across all modern operating systems – including BSD. In fact, some people believe that select() should be deprecated. Opinions aside, portability issues around poll() are no longer a concern on modern systems. Furthermore, epoll() has since been developed (you can read the man page), and continues to rise in popularity.

    For modern development you probably don’t want to use select(), although there’s nothing explicitly wrong with it. poll(), and it’s more modern evolution epoll(), provide the same features (and more) as select() without suffering from the limitations therein.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How similar/different are gnu make, microsoft nmake and posix standard make? Obviously there's things
Referring to TLB and maintenance issues ... My question to people (often) using the
I've heard people referring to this table and was not sure what it was
I'm referring to distinctions such as in this answer : ...bash isn't for writing
I'm using java and referring to the double datatype. To keep it short, I'm
What exactly does the word patch mean when referring to 'submitting a patch'? I've
I would like to provide the raw text referring to an environment variable to
If I have two objects on the heap referring to each other but they
By theoretical computer science topics, I am referring to things such as regular vs
How can I get a list of the running applications? I'm referring to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.