Messages in this thread | | | Date | Sat, 2 Jun 2001 20:31:27 -0700 | From | Mike Castle <> | Subject | Re: select() - Linux vs. BSD |
| |
On Sat, Jun 02, 2001 at 10:47:49PM -0400, John Chris Wren wrote: > I would have said just the opposite. That if it you have a large number of > handles you're waiting on, and you have to go back through and set the bits > everytime you timeout that you would incur a larger overhead. From the
Use a temp fd_set and assignment.
fd_set readset;
readset=set_to_watch
select(n, readset, NULL, NULL, timeout);
mrc -- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |