From owner-freebsd-hackers Fri Aug 7 15:37:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10177 for freebsd-hackers-outgoing; Fri, 7 Aug 1998 15:37:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dll.abs.net (cc698686-a.whmh1.md.home.com [24.3.58.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10164 for ; Fri, 7 Aug 1998 15:37:37 -0700 (PDT) (envelope-from hdl@abs.net) Received: from hdl (hdl@hdl.abs.net [207.114.24.1]) by dll.abs.net (8.9.0/8.8.5) with SMTP id SAA01346; Fri, 7 Aug 1998 18:37:16 -0400 (EDT) Message-Id: <199808072237.SAA01346@dll.abs.net> X-Sender: hdl@pop.abs.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1.0.37 (Beta) Date: Fri, 07 Aug 1998 18:37:15 -0400 To: freebsd-hackers@FreeBSD.ORG From: Howard Leadmon Subject: select() -vs- poll() in 3.0-CURRENT Cc: freebsd-current@freebsd.org.freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As I have started working with FreeBSD 3.0-CURRENT to run an Undernet IRC Server. As this monolithic program allows thousands of clients to connect to it, I had to allow thousands of FD's to be open, which has been done and works fine. The big question is that the 3.0 release now supports poll() as well as select() to service the FD's. The Undernet IRCD allows me to use either method by selecting it at compile time. So any of you hardcore C programmers out their know what is better for this environment? The the configure program uses poll() by default if it finds it available, but I suspect that is from SysV, so wondered if this is still the correct action for FBSD. For now I am running with poll() enabled, but thought I would see what others feelings were on this.. --- Howard Leadmon - hdl@abs.net - http://www.abs.net ABSnet Internet Services - Phone: 410-361-8160 - FAX: 410-361-8162 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message